app.celery.ContextTask.before_start

ContextTask.before_start(task_id, args, kwargs)

Handler called before the task starts.

New in version 5.2.

Parameters
  • task_id (str) – Unique id of the task to execute.

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

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

Returns

The return value of this handler is ignored.

Return type

None