`taskworker-scheduler` has no health check, so a hung scheduler stops scheduling silently
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 73/100
Hướng nghiên cứu
Start with the scheduler command in src/sentry/runner/commands/run.py at the linked lines, then compare its loop with the taskworker health check around line 215. Add the requested option and touch the health check file once per scheduler tick; done when the scheduler exposes the option and updates the file while scheduling. The issue mentions the Helm chart as a follow-up possibility but does not identify its file or test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
sentry run taskworker-scheduler queues every periodic task in TASKWORKER_SCHEDULES, such as cleanup and digests. It offers no way for an orchestrator to tell whether it is still scheduling. If its loop hangs, for example blocked on Redis, the process stays up and Kubernetes sees nothing wrong. Periodic tasks then stop with no error.
sentry run taskworker already solves this with --health-check-file-path: it touches a file as it works, and the Helm chart's liveness probe removes that file. The scheduler command takes only --redis-cluster, and its loop never signals that it is alive:
Request: add --health-check-file-path to taskworker-scheduler, touched once per scheduler tick, the same way taskworker does it (run.py#L215). The community Helm chart could then probe the scheduler the way it already probes task workers. Today the chart's task scheduler deployment has no probe at all.
Environment: self-hosted on Kubernetes with sentry-kubernetes/charts 36.0.0.
- Ngôn ngữ chính
- Shell
- Star
- 9.7k
- Fork
- 2k
- Merge trung bình
- 3 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 16
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọ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 getsentry/self-hosted
-
Waiting for: Product Owner
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/self-hosted#4644 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
getsentry/self-hosted#4518 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Community
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
getsentry/self-hosted#4637 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
getsentry/self-hosted#4634 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Waiting for: Product Owner
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
getsentry/self-hosted#4629 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của getsentry/self-hosted
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ajithakdev/claude-desktop-rpm#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
aws/aws-networking-best-practices#256 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area:terraform source:reader type:content-error
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
stephrobert/blog-roadmap#268 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
ChatGPT directory is behind mainĐang mởopenai-directory
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100