MCPcopy
hub / github.com/celery/celery / _unroll_tasks

Method _unroll_tasks

celery/canvas.py:1887–1890  ·  view source on GitHub ↗

Creates a generator for the cloned tasks of the tasks argument.

(self, tasks)

Source from the content-addressed store, hash-verified

1885 for group_index, task in enumerate(tasks))
1886
1887 def _unroll_tasks(self, tasks):
1888 """Creates a generator for the cloned tasks of the tasks argument."""
1889 # should be refactored to: (maybe_signature(task, app=self._app, clone=True) for task in tasks)
1890 yield from (maybe_signature(task, app=self._app).clone() for task in tasks)
1891
1892 def _freeze_unroll(self, new_tasks, group_id, chord, root_id, parent_id):
1893 """Generator for the frozen flattened group tasks.

Callers 1

_freeze_group_tasksMethod · 0.95

Calls 2

maybe_signatureFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected