MCPcopy Create free account
hub / github.com/celery/celery / before_start

Method before_start

celery/app/task.py:1235–1247  ·  view source on GitHub ↗

Handler called before the task starts. .. versionadded:: 5.2 Arguments: 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.

(self, task_id, args, kwargs)

Source from the content-addressed store, hash-verified

1233 task_id, meta, state, request=self.request, **kwargs)
1234
1235 def before_start(self, task_id, args, kwargs):
1236 """Handler called before the task starts.
1237
1238 .. versionadded:: 5.2
1239
1240 Arguments:
1241 task_id (str): Unique id of the task to execute.
1242 args (Tuple): Original arguments for the task to execute.
1243 kwargs (Dict): Original keyword arguments for the task to execute.
1244
1245 Returns:
1246 None: The return value of this handler is ignored.
1247 """
1248
1249 def on_success(self, retval, task_id, args, kwargs):
1250 """Success handler.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected