From 00b2a773b4e087dc9a8467e87997554bacceb349 Mon Sep 17 00:00:00 2001 From: Alissa Gerhard Date: Mon, 16 Oct 2023 13:11:34 +0200 Subject: [PATCH] sources/ldap: made ldap_sync_single calls from ldap_sync_all asynchronous (#6862) --- authentik/sources/ldap/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/sources/ldap/tasks.py b/authentik/sources/ldap/tasks.py index 026f398b6..9c4d6af73 100644 --- a/authentik/sources/ldap/tasks.py +++ b/authentik/sources/ldap/tasks.py @@ -32,7 +32,7 @@ CACHE_KEY_PREFIX = "goauthentik.io/sources/ldap/page/" def ldap_sync_all(): """Sync all sources""" for source in LDAPSource.objects.filter(enabled=True): - ldap_sync_single(source.pk) + ldap_sync_single.apply_async(args=[source.pk]) @CELERY_APP.task(