[BUG] Worker cron tasks stop working after postgres failover
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start by locating the self-hosted worker's scheduled task and database connection setup; the issue does not name files or tests. Reproduce a PostgreSQL 18 failover in the Kubernetes deployment and inspect worker logs for the closed connection error. Done means scheduled tasks recover without restarting the worker, as the API does.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
Every time our postgres fails over, the worker's scheduled tasks start failing and never recover until we restart the worker:
Couldn't apply scheduled task hourly_check: connection already closed
The API recovers on its own.
To Reproduce
Steps to reproduce the behavior:
- Fail over postgres
- Wait for the next scheduled task
- Check the worker logs
Expected behavior
The worker reconnects on its own like the API does.
Regression
Not sure
Screenshots
N/A
Product Area
Self-hosted worker
Versions
- OS: Kubernetes, self-hosted 26.5.18
- Git Host: GitHub
- CI/CD: GitHub Actions
- Uploader: [email protected]
Commit and CI link
N/A
Additional context
Postgres 18 with automatic failover on k8s with CNPG.
- Lingua principale
- Shell
- Stelle
- 547
- Fork
- 61
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codecov/self-hosted
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
codecov/self-hosted#64 · 6 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
codecov/self-hosted#62 ·
-
RepoSync failure workaroundAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
codecov/self-hosted#61 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
codecov/self-hosted#57 · 2 reazioni ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
codecov/self-hosted#55 · 1 commento ·
Tutte le issue di codecov/self-hosted
Issue simili
-
Hyprland 0.57: monitor-workspaces reconcile errors on every start and reload when a named workspace exists (workspace.id is nil)Forse già presa @jasasonc l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
priority middle
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
KATO-Hiro/AtCoderClans#12940 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
metal3-io/metal3-dev-env#1741 · 1 commento ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100