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
c0157c78b679
Commit
904541ef
authored
Nov 04, 2016
by
David Douard
Browse files
[entities] add a CeleryTask.parent_tasks property
that returns an iterator on all parents recursively
parent
0471b401be35
Changes
1
Hide whitespace changes
Inline
Side-by-side
entities.py
View file @
c0157c78
...
...
@@ -121,6 +121,13 @@ class CeleryTask(AnyEntity):
for
subtask
in
self
.
reverse_parent_task
:
yield
subtask
.
progress
@
property
def
parent_tasks
(
self
):
yield
self
for
task
in
self
.
parent_task
:
for
ptask
in
task
.
parent_tasks
:
yield
ptask
class
ICeleryTask
(
EntityAdapter
):
__regid__
=
'ICeleryTask'
...
...
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