mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
10 lines
230 B
Python
10 lines
230 B
Python
from ..models import Job
|
|
|
|
|
|
def delete_job_(app, job_id):
|
|
with app.app_context():
|
|
job = Job.query.get(job_id)
|
|
if job is None:
|
|
raise Exception('Job {} not found!'.format(job_id))
|
|
job.delete()
|