diff --git a/job.py b/job.py index ca3691c..3448984 100644 --- a/job.py +++ b/job.py @@ -181,6 +181,10 @@ def stale_job(id): log=Joblog( job_id=id, log="(Stale) Job restarted manually by user", log_date=now ) job.pa_job_state='New' job.state='New' + # reset state of job too, it should seem as new, and recalc/reset these items + job.num_files=0 + job.current_file='' + job.current_file_num=0 elif request.form['action'] == "cancel": log=Joblog( job_id=id, log="(Stale) Job withdrawn manually by user", log_date=now ) job.pa_job_state='Completed'