MCPcopy
hub / github.com/celery/celery / get_current_app

Function get_current_app

celery/_state.py:108–110  ·  view source on GitHub ↗

Return the current app.

()

Source from the content-addressed store, hash-verified

106
107if os.environ.get('C_STRICT_APP'): # pragma: no cover
108 def get_current_app():
109 """Return the current app."""
110 raise RuntimeError('USES CURRENT APP')
111elif os.environ.get('C_WARN_APP'): # pragma: no cover
112 def get_current_app():
113 import traceback

Callers 5

_unpickle_appattrFunction · 0.90
_unpickle_taskFunction · 0.90
_unpickle_task_v2Function · 0.90
__init__Method · 0.90
_app_or_defaultFunction · 0.85

Calls 1

_get_current_appFunction · 0.85

Tested by

no test coverage detected