Skip to content
Snippets Groups Projects
Commit cf59e853 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Improve error message when task not found

The error has been raised a few times but the cause hasn't been found.
Adding the representation of the job should help debugging.
parent ec51b3e8
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,10 @@ class TaskWorker(Worker):
self.log.warning("task not found...")
time.sleep(1)
else:
self.log.error(f"Task {job.id} not found! Task attribute not updated!")
self.log.error(
f"Task {job.id} not found for job: {job.get_call_string()}!"
" Task attribute not updated!"
)
return
for name, value in attributes.items():
setattr(task, name, value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment