Commit 067f2fc4 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

celery-monitor: handle REVOKED state

When a task is REVOKED, try to fire the 'fail' transition.

This require latest cset on cw-celerytask-helper [1] that add handling the REVOKED signal.

https://hg.logilab.org/review/cw-celerytask-helpers/rev/5ca553eb0f07
parent 86d65c710445
......@@ -334,6 +334,7 @@ class CeleryTaskAdapter(ICeleryTask):
STATES.SUCCESS: 'finish',
STATES.FAILURE: 'fail',
STATES.STARTED: 'start',
STATES.REVOKED: 'fail',
'PROGRESS': 'start',
}.get(result.state)
if transition is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment