mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-29 07:01:35 +00:00
Move file deletion to model methods. add restart job button.
This commit is contained in:
@@ -56,7 +56,7 @@ def download_job_input(job_id, job_input_id):
|
||||
def restart(job_id):
|
||||
job = Job.query.get_or_404(job_id)
|
||||
if job.status != 'failed':
|
||||
flash('Job can not be restarted!', 'job')
|
||||
flash('Could not restart job: status is not "failed"', 'error')
|
||||
else:
|
||||
tasks.restart_job(job_id)
|
||||
flash('Job has been restarted!', 'job')
|
||||
|
Reference in New Issue
Block a user