Skip to main content

add_replaced

Add two numbers (via the add task).

def add_replaced(
self: Task,
x: number,
y: number
) - > null

Add two numbers (via the add task).

Parameters

NameTypeDescription
selfTaskThe Celery task instance bound to this function, used to trigger the task replacement mechanism.
xnumberThe first numeric operand to be added.
ynumberThe second numeric operand to be added.

Returns

TypeDescription
nullThis function does not return a value directly as it raises a task replacement exception.