add_chord_to_chord
Appends a new chord, consisting of a group of addition subtasks followed by a summation task, to an existing Celery chord.
def add_chord_to_chord(
self: celery.app.task.Task,
nums: list[int|float],
val: int|float
) - > int
Appends a new chord workflow to an existing Celery chord by mapping an addition operation over a list of numbers and summing the results.
Parameters
| Name | Type | Description |
|---|---|---|
| self | celery.app.task.Task | The task instance, used to access the add_to_chord method for dynamic workflow manipulation. |
| nums | `list[int | float]` |
| val | `int | float` |
Returns
| Type | Description |
|---|---|
int | The integer 0, indicating the task has successfully initiated the chord addition. |