Skip to content

feat: slow job webhook alert#102

Merged
eclectic-coding merged 1 commit into
mainfrom
feat/slow-job-webhook-alert
May 28, 2026
Merged

feat: slow job webhook alert#102
eclectic-coding merged 1 commit into
mainfrom
feat/slow-job-webhook-alert

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds alert_slow_job_count_threshold config — fires a webhook alert when the number of currently-claimed jobs running longer than slow_job_threshold meets or exceeds this count
  • Extends AlertWebhook#build_alerts with the slow job check; payload includes type: "slow_jobs", count, and threshold
  • Wires up AlertWebhook.check into DashboardController#index — it was previously never called
  • Documents the new config option in the install generator template
  • Adds CHANGELOG entry under [Unreleased]

Test plan

  • 5 new model specs covering: below-threshold (no fire), at-threshold (fires), within-window (no fire), payload content, and missing slow_job_threshold (no fire)
  • Full suite: 371 examples, 0 failures, rubocop clean

🤖 Generated with Claude Code

Fire an alert when the count of currently-claimed jobs that have been
running longer than `slow_job_threshold` meets or exceeds the new
`alert_slow_job_count_threshold` config. Payload type is `"slow_jobs"`.
Also wires up AlertWebhook.check into DashboardController#index, which
was previously uncalled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit c97b511 into main May 28, 2026
4 checks passed
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