diff --git a/authentik/core/apps.py.orig b/authentik/core/apps.py index 4d45603..9cd660f 100644 --- a/authentik/core/apps.py.orig +++ b/authentik/core/apps.py @@ -2,6 +2,7 @@ from django.conf import settings from authentik.blueprints.manager import ManagedAppConfig +from django.conf import settings class AuthentikCoreConfig(ManagedAppConfig): @@ -18,11 +19,8 @@ class AuthentikCoreConfig(ManagedAppConfig): self.import_module("authentik.core.signals") def reconcile_debug_worker_hook(self): - """Dispatch startup tasks inline when debugging""" - if settings.DEBUG: - from authentik.root.celery import worker_ready_hook - - worker_ready_hook() + from authentik.root.celery import worker_ready_hook + worker_ready_hook() def reconcile_source_inbuilt(self): """Reconcile inbuilt source"""