Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
celerytask
Commits
b23b5d5567d9
Commit
be3744cc
authored
Mar 14, 2017
by
Philippe Pepiot
Browse files
[entities] celery-monitor: fix transition name for start
"running" is a state, not a transition.
parent
6b27c9970238
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
b23b5d55
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment