fix(ha): gate library tasks on the scan leader by default #11

Merged
benvin merged 2 commits from benvin/scan-leader-default into main 2026-09-13 15:04:38 +10:00
Member

Jellyfin:ScanLeader:Enabled defaults to false and nothing sets it, so leader election never runs and every replica executes the timer-driven library tasks concurrently — the exact behaviour the lease exists to prevent.

  • Enable gating by default when a Redis connection string is configured
  • Honour an explicit Enabled setting either way
  • Carry the effective decision onto the bound options the task worker reads
  • Log at startup whether gating is active
  • Warn when gating is enabled but no Redis connection string is configured
`Jellyfin:ScanLeader:Enabled` defaults to false and nothing sets it, so leader election never runs and every replica executes the timer-driven library tasks concurrently — the exact behaviour the lease exists to prevent. - Enable gating by default when a Redis connection string is configured - Honour an explicit `Enabled` setting either way - Carry the effective decision onto the bound options the task worker reads - Log at startup whether gating is active - Warn when gating is enabled but no Redis connection string is configured
unkin-agent added 1 commit 2026-09-13 13:20:04 +10:00
fix(ha): gate library tasks on the scan leader by default
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
91655fcb0a
Jellyfin:ScanLeader:Enabled defaults to false and nothing sets it, so
leader election never runs and every replica executes the timer-driven
library tasks concurrently - the exact behaviour the lease prevents.

- Enable gating by default when a Redis connection string is configured
- Honour an explicit Enabled setting either way
- Carry the effective decision onto the bound options the task worker reads
- Log at startup whether gating is active
- Warn when gating is enabled but no Redis connection string is configured
unkin-agent added 1 commit 2026-09-13 14:56:19 +10:00
merge: resolve CoreAppHost conflict with main, drop dead redisConnectionString local
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
b77702c851
benvin merged commit ec581b5e5f into main 2026-09-13 15:04:38 +10:00
benvin deleted branch benvin/scan-leader-default 2026-09-13 15:04:38 +10:00
Sign in to join this conversation.