Skip to main content

retry_unpickleable

Task that fails with an unpickleable exception and is retried.

def retry_unpickleable(
self: celery.app.task.Task,
foo: any,
bar: any,
retry_kwargs: dict
) - > null

Task that fails with an unpickleable exception and is retried.

Parameters

NameTypeDescription
selfcelery.app.task.TaskThe task instance bound to the function, providing access to the retry mechanism.
fooanyThe first positional argument used to initialize the UnpickleableException.
baranyThe second positional argument used to initialize the UnpickleableException.
retry_kwargsdictA dictionary of keyword arguments passed to the Celery retry method to control retry behavior.

Returns

TypeDescription
nullThis function does not return a value as it raises a retry exception to reschedule the task.