ayaports/user/authentik/core-trigger-tasks-in-server.patch

27 lines
879 B
Diff
Raw Normal View History

2022-12-27 20:40:33 +00:00
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"""