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
| Name | Type | Description |
|---|---|---|
| self | Task | The Celery task instance bound to this function, used to access task replacement methods. |
| nums | `list[int | float]` |
| val | `int | float` |
Returns
| Type | Description |
|---|---|
null | This function does not return a value; it raises a TaskReplacement exception to trigger a Celery group execution. |