Fix TaskResult.fetch_results

This commit is contained in:
Jan Dittberner 2023-05-07 14:02:10 +02:00
parent 3b04595c7a
commit 27e9d27b2b

View file

@ -48,6 +48,6 @@ class TaskResult(TimeStampedModel):
ar = app.AsyncResult(self.task_id) ar = app.AsyncResult(self.task_id)
self.state = ar.state self.state = ar.state
if ar.ready(): if ar.ready():
res = ar.get() res = ar.get(propagate=False, timeout=5)
self.result = str(res) self.result = str(res)
self.finished = True self.finished = True