Celery queue depth metrics and alerts
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 22/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend, observability
Research direction
The payload names no files. Start with the existing Celery setup, looking for the four queues (default, ratings, email, webhooks) and the Sentry cron monitor settings from #65, which this depends on. Add a read-only periodic task on the default queue that reports each queue length from Valkey. Done means all four lengths reach the chosen tool from staging and a held backlog on a stopped worker triggers the alert. Maintainers have not chosen Sentry or Grafana, and the issue says to leave it in the backlog, so confirm that first.
Written by the indexing model from the issue text.
Description
Problem: Queue depth and worker load show when Celery is falling behind before ratings, email, or webhooks become late. Nothing reports it yet. Sentry cron monitors (#65) catch jobs that stop or run long, and the Rating updates check (#140) catches late ratings, so this may never be needed.
When to do this: Only when one of these happens: a backlog was found late in an incident, the email or webhooks queues go unwatched by any other check, or the mobile apps launch and traffic grows. Until then, leave it in the backlog.
Scope:
- A periodic task on the
defaultqueue that reads the length of each Celery queue (default,ratings,email,webhooks) from Valkey - Report the lengths as metrics: to Sentry, or to a free hosted Grafana if maintainers want charts. Opt-in from settings, like #65
- An alert when a queue stays above a threshold for a set time
- Safe to run twice; reads only, never changes the queues
- Document it in the runbook from #66
Acceptance criteria:
- Queue lengths for all four queues appear in the chosen tool from staging
- Holding tasks on a stopped worker raises the alert
- Metrics hold queue names and counts only: no task arguments
Out of scope:
- Flower. If someone needs it later, it must sit behind auth on a private route, since it shows task arguments
Depends on: #65
Size: S
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 206
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openpickleball/backend
-
area:infra documentation priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#472 ·
Maintainers usually reply within 1 day
-
Show doctl's error when the Deploy workflow's update failsPossibly taken @GeoBradDev claimed this today. Openarea:infra bug priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#471 ·
Maintainers usually reply within 1 day
-
area:infra documentation type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openpickleball/backend#196 ·
Maintainers usually reply within 1 day
-
area:infra type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#195 ·
Maintainers usually reply within 1 day
-
area:api enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openpickleball/backend#470 ·
Maintainers usually reply within 1 day
All issues in openpickleball/backend
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day