Skip to main content

add_autoretry_behaviour

Wrap task's run method with auto-retry functionality.

def add_autoretry_behaviour(
task: Task,
**options: dict
) - > null

Wrap task's run method with auto-retry functionality.

Parameters

NameTypeDescription
taskTaskThe Celery task instance whose run method will be decorated with retry logic.
**optionsdictConfiguration overrides for retry behavior including 'autoretry_for', 'retry_backoff', and 'retry_jitter'.

Returns

TypeDescription
nullThis function modifies the task instance in-place and does not return a value.