MCPcopy
hub / github.com/celery/celery / as_list

Method as_list

celery/result.py:126–133  ·  view source on GitHub ↗

Return as a list of task IDs.

(self)

Source from the content-addressed store, hash-verified

124 return (self.id, parent and parent.as_tuple()), None
125
126 def as_list(self):
127 """Return as a list of task IDs."""
128 results = []
129 parent = self.parent
130 results.append(self.id)
131 if parent is not None:
132 results.extend(parent.as_list())
133 return results
134
135 def forget(self):
136 """Forget the result of this task and its parents."""

Callers 1

test_as_listMethod · 0.95

Calls 1

extendMethod · 0.45

Tested by 1

test_as_listMethod · 0.76