core: trigger bootstrap tasks in server if we're debugging
closes #3040 Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
7beebe030d
commit
5e2d647a6c
|
@ -2,6 +2,7 @@
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
|
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
class AuthentikCoreConfig(AppConfig):
|
class AuthentikCoreConfig(AppConfig):
|
||||||
|
@ -15,3 +16,7 @@ class AuthentikCoreConfig(AppConfig):
|
||||||
def ready(self):
|
def ready(self):
|
||||||
import_module("authentik.core.signals")
|
import_module("authentik.core.signals")
|
||||||
import_module("authentik.core.managed")
|
import_module("authentik.core.managed")
|
||||||
|
if settings.DEBUG:
|
||||||
|
from authentik.root.celery import worker_ready_hook
|
||||||
|
|
||||||
|
worker_ready_hook()
|
||||||
|
|
Reference in a new issue