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

Method __call__

celery/app/task.py:546–553  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

544 setattr(cls, attr, meth)
545
546 def __call__(self, *args, **kwargs):
547 _task_stack.push(self)
548 self.push_request(args=args, kwargs=kwargs)
549 try:
550 return self.run(*args, **kwargs)
551 finally:
552 self.pop_request()
553 _task_stack.pop()
554
555 __class_getitem__ = classmethod(types.GenericAlias)
556

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