MCPcopy
hub / github.com/celery/celery / _get_app

Method _get_app

celery/app/task.py:398–405  ·  celery/app/task.py::Task._get_app
(cls)

Source from the content-addressed store, hash-verified

396
397 @classmethod
398 def _get_app(cls):
399 if cls._app is None:
400 cls._app = current_app
401 if not cls.__bound__:
402 class="cm"># The app property's __set__ method is not called
403 class="cm"># if Task.app is set (on the class), so must bind on use.
404 cls.bind(cls._app)
405 return cls._app
406 app = class_property(_get_app, bind)
407
408 @classmethod

Callers 3

apply_asyncMethod · 0.95
applyMethod · 0.95
AsyncResultMethod · 0.95

Calls 1

bindMethod · 0.80

Tested by

no test coverage detected