MCPcopy
hub / github.com/celery/celery / set_current

Method set_current

celery/app/base.py:448–450  ·  view source on GitHub ↗

Make this the current app for this thread.

(self)

Source from the content-addressed store, hash-verified

446 self._preconf_set_by_auto.add(key)
447
448 def set_current(self):
449 """Make this the current app for this thread."""
450 _set_current_app(self)
451
452 def set_default(self):
453 """Make this the default app for all threads."""

Callers 13

__init__Method · 0.95
ZZZZ_set_app_currentFunction · 0.80
embed_workerFunction · 0.80
runMethod · 0.80
runMethod · 0.80
celery_session_appFunction · 0.80
depends_on_current_appFunction · 0.80
_start_worker_processFunction · 0.80
setup_app_for_workerFunction · 0.80

Calls 1

_set_current_appFunction · 0.90

Tested by 6

ZZZZ_set_app_currentFunction · 0.64
embed_workerFunction · 0.64
celery_session_appFunction · 0.64
depends_on_current_appFunction · 0.64