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

[celery-monitor] handle PROGRESS state

PROGRESS is a custom state used to handle progress bar in views.
When we receive PROGRESS, fire transition 'running' (if possible).
parent 1f6621373550
......@@ -319,6 +319,7 @@ class CeleryTaskAdapter(ICeleryTask):
STATES.SUCCESS: 'finish',
STATES.FAILURE: 'fail',
STATES.STARTED: 'running',
'PROGRESS': 'running',
}.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