Skip to main content

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

NameTypeDescription
selfcelery.app.task.TaskThe task instance, used to access the add_to_chord method for dynamic workflow manipulation.
nums`list[intfloat]`
val`intfloat`

Returns

TypeDescription
intThe integer 0, indicating the task has successfully initiated the chord addition.