Skip to main content

chord_add

Executes a Celery chord that asynchronously adds two numbers and passes the result to another addition task.

def chord_add(
x: int,
y: int
) - > celery.result.AsyncResult

Executes a Celery chord that performs parallel addition tasks and aggregates the results.

Parameters

NameTypeDescription
xintThe base value used to generate the header tasks for the chord.
yintThe value passed to the callback task to be added to the header results.

Returns

TypeDescription
celery.result.AsyncResultThe result object for the asynchronous chord execution.