retry_once_headers
Task that fails and is retried. Returns headers.
def retry_once_headers(
self: celery.app.task.Task,
*args: any,
max_retries: int = 1,
countdown: float = 0.1
) - > dict
Task that fails and is retried. Returns headers.
Parameters
| Name | Type | Description |
|---|---|---|
| self | celery.app.task.Task | The task instance bound to the function, providing access to request context and retry logic |
| *args | any | Variable length argument list passed to the task |
| max_retries | int = 1 | The maximum number of times the task should be retried before failing |
| countdown | float = 0.1 | The delay in seconds to wait before executing the retry attempt |
Returns
| Type | Description |
|---|---|
dict | The request headers from the task execution context after a successful retry |