-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Describe the bug
Hi,
Since the 2025.10.0 release of Authentik, we are seeing an enormous number of System Tasks not able to be processed in time. They keep piling again and again, sometimes getting 500 Pending System Tasks at one without doing anything. We have 2 workers, each having 8 cores, and a Postgres Database that runs on an NVMe drive, without any CPU/RAM problems, but this is still not enough to handle the amount of system tasks queued.
From what I can see, this started to happen once the Redis dependency was removed, and Postgres being the only source of jobs for the Workers.
I would love to have help on this.
Cheers,
How to reproduce
- Do nothing, and just wait for an event to happen : a login, some API call, whatever, and then System Tasks are flooding
Expected behavior
I expect the Workers to be able to handle the system tasks, as much as when Redis was in place.
Screenshots
Additional context
I'm forced to just stop the workers so that it stops queuing new system tasks, but If I do this, the Webhooks are not triggered for events, which in my case is extremely bad.
I also still have the problem mentioned in #17648 in my logs, maybe this is related.
Deployment Method
Docker
Version
2025.10.2
Relevant log output
Nov 25 15:53:21 authentik-db-001 postgres[67127]: [912-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:22 authentik-db-001 postgres[67127]: [913-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:22 authentik-db-001 postgres[67127]: [914-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:22 authentik-db-001 postgres[67096]: [950-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:22 authentik-db-001 postgres[67127]: [915-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:25 authentik-db-001 postgres[67096]: [951-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:25 authentik-db-001 postgres[67096]: [952-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:26 authentik-db-001 postgres[67096]: [953-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:26 authentik-db-001 postgres[67096]: [954-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:26 authentik-db-001 postgres[67096]: [955-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:26 authentik-db-001 postgres[67096]: [956-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:26 authentik-db-001 postgres[67127]: [916-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:27 authentik-db-001 postgres[67096]: [957-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:27 authentik-db-001 postgres[67096]: [958-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:27 authentik-db-001 postgres[67127]: [917-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:27 authentik-db-001 postgres[67096]: [959-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:28 authentik-db-001 postgres[67127]: [918-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:28 authentik-db-001 postgres[67096]: [960-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:28 authentik-db-001 postgres[67096]: [961-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:28 authentik-db-001 postgres[67096]: [962-1] [67096] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:29 authentik-db-001 postgres[67127]: [919-1] [67127] WARNING: you don't own a lock of type ExclusiveLock
Nov 25 15:53:30 authentik-db-001 postgres[67127]: [920-1] [67127] WARNING: you don't own a lock of type ExclusiveLock