Skip to main content

add_to_all

Add the given value to all supplied numbers.

def add_to_all(
self: Task,
nums: list[int|float],
val: int|float
) - > null

Add the given value to all supplied numbers.

Parameters

NameTypeDescription
selfTaskThe Celery task instance bound to this function, used to access task replacement methods.
nums`list[intfloat]`
val`intfloat`

Returns

TypeDescription
nullThis function does not return a value; it raises a TaskReplacement exception to trigger a Celery group execution.