blueprints: use reconcile decorator instead of relying on function name prefix (#8483)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -14,14 +14,16 @@ class AuthentikCoreConfig(ManagedAppConfig):
 | 
			
		||||
    mountpoint = ""
 | 
			
		||||
    default = True
 | 
			
		||||
 | 
			
		||||
    def reconcile_global_debug_worker_hook(self):
 | 
			
		||||
    @ManagedAppConfig.reconcile_global
 | 
			
		||||
    def debug_worker_hook(self):
 | 
			
		||||
        """Dispatch startup tasks inline when debugging"""
 | 
			
		||||
        if settings.DEBUG:
 | 
			
		||||
            from authentik.root.celery import worker_ready_hook
 | 
			
		||||
 | 
			
		||||
            worker_ready_hook()
 | 
			
		||||
 | 
			
		||||
    def reconcile_tenant_source_inbuilt(self):
 | 
			
		||||
    @ManagedAppConfig.reconcile_tenant
 | 
			
		||||
    def source_inbuilt(self):
 | 
			
		||||
        """Reconcile inbuilt source"""
 | 
			
		||||
        from authentik.core.models import Source
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user