MCPcopy
hub / github.com/celery/celery / __init__

Method __init__

celery/fixups/django.py:69–73  ·  view source on GitHub ↗
(self, app: "Celery")

Source from the content-addressed store, hash-verified

67 """Fixup installed when using Django."""
68
69 def __init__(self, app: "Celery"):
70 self.app = app
71 if _state.default_app is None:
72 self.app.set_default()
73 self._worker_fixup: Optional["DjangoWorkerFixup"] = None
74
75 def install(self) -> "DjangoFixup":
76 # Need to add project directory to path.

Callers

nothing calls this directly

Calls 1

set_defaultMethod · 0.80

Tested by

no test coverage detected