Skip to content

Add Celery task duration metrics - #367

Open
evan-datadog wants to merge 6 commits into
masterfrom
evan/lemur-celery-task-duration
Open

Add Celery task duration metrics#367
evan-datadog wants to merge 6 commits into
masterfrom
evan/lemur-celery-task-duration

Conversation

@evan-datadog

Copy link
Copy Markdown

Adds centralized Celery task duration metrics in lemur/common/celery.py via task_prerun/task_success/task_failure/task_revoked so we can spot queue hogs and starvation risk.

Metrics:

  • lemur.celery.task_duration (tags: task_name, status)
  • existing success/failure/revoked signals remain unchanged

Validated with python3 -m py_compile.

@evan-datadog
evan-datadog requested review from a team as code owners August 14, 2026 16:03
Comment thread lemur/common/celery.py Outdated
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Aug 14, 2026

Copy link
Copy Markdown

Pipelines

Unblock PR with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/lemur | test   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: cf3fc10 | Docs | Datadog PR Page | Give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant