[BUG] Worker cron tasks stop working after postgres failover
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
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ả
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.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codecov/self-hosted
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
codecov/self-hosted#64 · 6 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
codecov/self-hosted#62 ·
-
RepoSync failure workaroundĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
codecov/self-hosted#61 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
codecov/self-hosted#57 · 2 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
codecov/self-hosted#55 · 1 bình luận ·
Tất cả issue của codecov/self-hosted
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
IceWhaleTech/ZimaOS#639 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
containers/podman-compose#1607 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Chase latest GoreleaserĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
super-linter/super-linter#8230 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Container builds fail on Fedora/Rocky: kernel-devel-$(uname -r) has no matchCó thể đã có người làm @fitzyracing1 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
-
🎙️ task - fix(git.commit.set): let a chore(deps) commit lead a branch before its first fix/featĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ehmpathy/rhachet-roles-ehmpathy#1213 ·
Maintainer thường phản hồi trong vòng 1 ngày