MCPcopy
hub / github.com/celery/celery / _get_current_app

Function _get_current_app

celery/_state.py:92–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91
92def _get_current_app():
93 if default_app is None:
94 #: creates the global fallback app instance.
95 from celery.app.base import Celery
96 set_default_app(Celery(
97 'default', fixups=[], set_as_current=False,
98 loader=os.environ.get('CELERY_LOADER') or 'default',
99 ))
100 return _tls.current_app or default_app
101
102
103def _set_current_app(app):

Callers 1

get_current_appFunction · 0.85

Calls 3

CeleryClass · 0.90
set_default_appFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected