fix(api): survive transient database errors in the worker (#2326)

This commit is contained in:
Hampus
2026-09-01 20:47:19 +02:00
committed by GitHub
parent aa267b54ec
commit 1688e7dc50
9 changed files with 779 additions and 13 deletions
+7
View File
@@ -345,6 +345,13 @@ services:
FLUXER_API_WORKER_ENABLE_CRON_SCHEDULER: "true"
FLUXER_API_WORKER_ENABLE_VOICE_RECONCILIATION: "true"
FLUXER_POSTGRES_MAX_CONNECTIONS: "25"
healthcheck:
test: ["CMD", "node", "-e", "const age=Date.now()-require('node:fs').statSync('/tmp/fluxer-worker-heartbeat').mtimeMs;if(age>30000){console.error('worker heartbeat is '+Math.round(age)+'ms old');process.exit(1)}"]
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
start_interval: 1s
depends_on:
postgres: {condition: service_healthy}
valkey: {condition: service_healthy}