app.celery.ContextTask.on_failure
- ContextTask.on_failure(exc, task_id, args, kwargs, einfo) None
Error handler.
This is run by the worker when the task fails.
- Parameters
exc (Exception) – The exception raised by the task.
task_id (str) – Unique id of the failed task.
args (Tuple) – Original arguments for the task that failed.
kwargs (Dict) – Original keyword arguments for the task that failed.
einfo (ExceptionInfo) – Exception information.
- Returns
The return value of this handler is ignored.
- Return type
None