Commit be3744cc authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[entities] celery-monitor: fix transition name for start

"running" is a state, not a transition.
parent 6b27c9970238
......@@ -318,8 +318,8 @@ class CeleryTaskAdapter(ICeleryTask):
transition = {
STATES.SUCCESS: 'finish',
STATES.FAILURE: 'fail',
STATES.STARTED: 'running',
'PROGRESS': 'running',
STATES.STARTED: 'start',
'PROGRESS': 'start',
}.get(result.state)
if transition is not None:
log.info('<CeleryTask %s (task_id %s)> %s', task.eid, task_id,
......
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