summaryrefslogtreecommitdiff
path: root/lorrycontroller/jobupdate.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/jobupdate.py')
-rw-r--r--lorrycontroller/jobupdate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lorrycontroller/jobupdate.py b/lorrycontroller/jobupdate.py
index 24a3c4a..3bd0e81 100644
--- a/lorrycontroller/jobupdate.py
+++ b/lorrycontroller/jobupdate.py
@@ -57,9 +57,9 @@ class JobUpdate(lorrycontroller.LorryControllerRoute):
logging.warning(
'Job %r has been running too long, '
'marking it to be exterminated', job_id)
- statedb.set_kill_job(path, True)
+ statedb.set_kill_job(job_id, True)
- obj = statedb.get_lorry_info(path)
+ obj = statedb.get_job_info(job_id)
logging.debug('obj=%r', obj)
return obj