errback_new_style
Increments a count in Redis using the provided request ID and returns the ID.
def errback_new_style(
request: celery.app.task.Context,
exc: Exception,
tb: Traceback
) - > string
Handles task failures by incrementing a failure count in Redis and returning the unique identifier of the failed task.
Parameters
| Name | Type | Description |
|---|---|---|
| request | celery.app.task.Context | The task context object containing metadata about the failed execution, specifically the task ID. |
| exc | Exception | The exception instance that caused the task to fail. |
| tb | Traceback | The traceback object associated with the exception for debugging purposes. |
Returns
| Type | Description |
|---|---|
string | The unique task identifier associated with the failed request. |