Skip to main content

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

NameTypeDescription
requestcelery.app.task.ContextThe task context object containing metadata about the failed execution, specifically the task ID.
excExceptionThe exception instance that caused the task to fail.
tbTracebackThe traceback object associated with the exception for debugging purposes.

Returns

TypeDescription
stringThe unique task identifier associated with the failed request.