app.celery.ContextTask.on_retry

ContextTask.on_retry(exc, task_id, args, kwargs, einfo)

Retry handler.

This is run by the worker when the task is to be retried.

Parameters
  • exc (Exception) – The exception sent to retry().

  • task_id (str) – Unique id of the retried task.

  • args (Tuple) – Original arguments for the retried task.

  • kwargs (Dict) – Original keyword arguments for the retried task.

  • einfo (ExceptionInfo) – Exception information.

Returns

The return value of this handler is ignored.

Return type

None