Skip to content

2025.8.4: loop enqueuing SCIM/Google Workspace/Microsoft Entra sync tasks (not configured) #17648

@GascPT

Description

@GascPT

Similar to #16314

When an LDAP sync occurs, a bunch of tasks are queued:

authentik.enterprise.providers.google_workspace.tasks.google_workspace_sync_direct_dispatch 
authentik.enterprise.providers.microsoft_entra.tasks.microsoft_entra_sync_direct_dispatch
authentik.providers.scim.tasks.scim_sync_direct_dispatch 

I have changed the PostgreSQL settings, increasing the shared_buffers in order to avoid Out of Memory errors.

root@sso:/opt/authentik# docker exec -it authentik-postgresql-1 psql -U authentik -d authentik -c "select actor_name, count(actor_name) from authentik_tasks_task group by actor_name;"
                                         actor_name                                          | count
---------------------------------------------------------------------------------------------+--------
 authentik.admin.tasks.update_latest_version                                                 |     22
 authentik.blueprints.v1.tasks.blueprints_discovery                                          |    431
 authentik.blueprints.v1.tasks.clear_failed_blueprints                                       |    432
 authentik.core.tasks.clean_expired_models                                                   |    258
 authentik.core.tasks.clean_temporary_users                                                  |    237
 authentik.crypto.tasks.certificate_discovery                                                |     23
 authentik.enterprise.policies.unique_password.tasks.check_and_purge_password_history        |      1
 authentik.enterprise.policies.unique_password.tasks.trim_password_histories                 |      2
 authentik.enterprise.providers.google_workspace.tasks.google_workspace_sync_direct_dispatch | 271525
 authentik.enterprise.providers.google_workspace.tasks.google_workspace_sync_m2m_dispatch    |     17
 authentik.enterprise.providers.microsoft_entra.tasks.microsoft_entra_sync_direct_dispatch   | 271525
 authentik.enterprise.providers.microsoft_entra.tasks.microsoft_entra_sync_m2m_dispatch      |     17
 authentik.enterprise.providers.ssf.tasks.ssf_events_dispatch                                |   1104
 authentik.enterprise.tasks.enterprise_update_usage                                          |     12
 authentik.events.tasks.event_trigger_dispatch                                               |   1132
 authentik.events.tasks.event_trigger_handler                                                |   3397
 authentik.events.tasks.notification_cleanup                                                 |      3
 authentik.events.tasks.notification_transport                                               |     60
 authentik.outposts.tasks.outpost_connection_discovery                                       |    412
 authentik.outposts.tasks.outpost_controller                                                 |    438
 authentik.outposts.tasks.outpost_send_update                                                |    410
 authentik.outposts.tasks.outpost_service_connection_monitor                                 |     87
 authentik.outposts.tasks.outpost_session_end                                                |   1079
 authentik.outposts.tasks.outpost_token_ensurer                                              |      3
 authentik.providers.oauth2.tasks.backchannel_logout_notification_dispatch                   |   1079
 authentik.providers.proxy.tasks.proxy_on_logout                                             |   1079
 authentik.providers.scim.tasks.scim_sync_direct_dispatch                                    | 271525
 authentik.providers.scim.tasks.scim_sync_m2m_dispatch                                       |     17
 authentik.sources.ldap.tasks.ldap_connectivity_check                                        |     45
 authentik.sources.ldap.tasks.ldap_sync                                                      |    262
 authentik.sources.ldap.tasks.ldap_sync_page                                                 |   5706
 authentik.sources.oauth.tasks.update_well_known_jwks                                        |      8
 authentik.stages.email.tasks.send_mail                                                      |     15
 authentik.tasks.tasks.clean_worker_statuses                                                 |      1

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions