MCPcopy
hub / github.com/celery/celery / add_to_all

Function add_to_all

t/integration/tasks.py:157–160  ·  view source on GitHub ↗

Add the given value to all supplied numbers.

(self, nums, val)

Source from the content-addressed store, hash-verified

155
156@shared_task(bind=True)
157def add_to_all(self, nums, val):
158 """Add the given value to all supplied numbers."""
159 subtasks = [add.s(num, val) for num in nums]
160 raise self.replace(group(*subtasks))
161
162
163@shared_task(bind=True)

Callers

nothing calls this directly

Calls 3

groupClass · 0.90
sMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected