MCPcopy
hub / github.com/celery/celery / __call__

Method __call__

celery/app/task.py:426–433  ·  celery/app/task.py::Task.__call__
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

424 setattr(cls, attr, meth)
425
426 def __call__(self, *args, **kwargs):
427 _task_stack.push(self)
428 self.push_request(args=args, kwargs=kwargs)
429 try:
430 return self.run(*args, **kwargs)
431 finally:
432 self.pop_request()
433 _task_stack.pop()
434
435 def __reduce__(self):
436 class="cm"># - tasks are pickled into the name of the task only, and the receiver

Callers

nothing calls this directly

Calls 5

push_requestMethod · 0.95
runMethod · 0.95
pop_requestMethod · 0.95
pushMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected