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
| Name | Type | Description |
|---|---|---|
| self | celery.app.task.Task | The task instance bound to the function, providing access to the retry mechanism. |
| foo | any | The first positional argument used to initialize the UnpickleableException. |
| bar | any | The second positional argument used to initialize the UnpickleableException. |
| retry_kwargs | dict | A dictionary of keyword arguments passed to the Celery retry method to control retry behavior. |
Returns
| Type | Description |
|---|---|
null | This function does not return a value as it raises a retry exception to reschedule the task. |