Skip to content

feat: stale process webhook alert#104

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/stale-process-webhook-alert
May 28, 2026
Merged

feat: stale process webhook alert#104
eclectic-coding merged 2 commits into
mainfrom
feat/stale-process-webhook-alert

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds alert_stale_process_threshold config — fires a webhook alert when the number of workers with a heartbeat older than 5 minutes meets or exceeds this count
  • Extends AlertWebhook#build_alerts with the stale process check; reads processes_stale from the already-computed queue_stats hash to avoid a redundant DB query; payload type is "stale_processes"
  • Documents the new config option in the install generator template
  • Removes shipped stale process alert from ROADMAP v1.3
  • Adds CHANGELOG entry under [Unreleased]

Test plan

  • 4 new model specs covering: below-threshold (no fire), at-threshold (fires), payload content, and unconfigured (no fire)
  • Full suite: 375 examples, 0 failures, rubocop clean

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 28, 2026 08:02
Fire an alert when the count of workers with a heartbeat older than
5 minutes meets or exceeds `alert_stale_process_threshold`. Reuses the
existing `alert_webhook_url` and `alert_webhook_cooldown` config.
Payload type is `"stale_processes"`. Stale count is read from the
already-computed `queue_stats` hash to avoid a redundant DB query.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 42da949 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