Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[BUG] Worker cron tasks stop working after postgres failover

Đang mở
#70 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, kubernetes, postgresql
Lĩnh vực
databases, devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
547
Fork
61
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codecov/self-hosted

Tất cả issue của codecov/self-hosted

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.