MCPcopy Create free account
hub / github.com/celery/celery / delayed_sum

Function delayed_sum

t/integration/tasks.py:119–124  ·  view source on GitHub ↗

Sum the iterable of numbers.

(numbers, pause_time=1)

Source from the content-addressed store, hash-verified

117
118@shared_task
119def delayed_sum(numbers, pause_time=1):
120 """Sum the iterable of numbers."""
121 # Allow the task to be in STARTED state for
122 # a limited period of time.
123 sleep(pause_time)
124 return sum(numbers)
125
126
127@shared_task

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected