Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[BUG] Worker cron tasks stop working after postgres failover

Aperta
#70 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, kubernetes, postgresql
Ambito
databases, devops

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

bug

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:

  1. Fail over postgres
  2. Wait for the next scheduled task
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codecov/self-hosted

Tutte le issue di codecov/self-hosted

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.