diff options
Diffstat (limited to 'lorrycontroller/jobupdate.py')
-rw-r--r-- | lorrycontroller/jobupdate.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lorrycontroller/jobupdate.py b/lorrycontroller/jobupdate.py index 3bd0e81..efc9ce1 100644 --- a/lorrycontroller/jobupdate.py +++ b/lorrycontroller/jobupdate.py @@ -44,11 +44,13 @@ class JobUpdate(lorrycontroller.LorryControllerRoute): if stderr: statedb.append_to_job_output(job_id, stderr) + now = statedb.get_current_time() + statedb.set_job_updated(job_id, now) + path = statedb.find_lorry_running_job(job_id) lorry_info = statedb.get_lorry_info(path) if exit is not None and exit != 'no': - now = statedb.get_current_time() statedb.set_lorry_last_run(path, int(now)) statedb.set_running_job(path, None) statedb.set_job_exit(job_id, exit, int(now), disk_usage) |