Skip to content
Snippets Groups Projects
Commit dff8a2d4 authored by Erik Reid's avatar Erik Reid
Browse files

don't call update_state from on_failure

parent 46822631
No related branches found
No related tags found
No related merge requests found
......@@ -62,12 +62,7 @@ class InventoryTask(Task):
super().update_state(**kwargs)
def on_failure(self, exc, task_id, args, kwargs, einfo):
self.update_state(
state=states.FAILURE,
meta={
'task': task_id,
'exc': exc
})
logger.exception(exc)
super().on_failure(exc, task_id, args, kwargs, einfo)
......
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