Skip to content

feat(monitoring): add failure alerting and escalation chain for cron job failures#854

Merged
temma02 merged 1 commit into
StellerCraft:mainfrom
Darkdruce:feat/cron-failure-alerting-escalation
Jun 27, 2026
Merged

feat(monitoring): add failure alerting and escalation chain for cron job failures#854
temma02 merged 1 commit into
StellerCraft:mainfrom
Darkdruce:feat/cron-failure-alerting-escalation

Conversation

@Darkdruce

Copy link
Copy Markdown
Contributor

Closes #759

Adds persistent cron job failure tracking with escalating alerts.

  • New Supabase migration 014_cron_job_failures.sql creates cron_job_failures table (survives restarts)
  • CronFailureTrackerService with recordSuccess, recordFailure, and wrapCronHandler
  • Alert thresholds: Slack webhook at 3 consecutive failures, email (console error) at 6
  • Auto-resolves on successful run (resets counter to 0)
  • Secrets: SLACK_WEBHOOK_URL env var; no alert sent if unset
  • Tests cover failure counting, escalation triggers, auto-resolve, and handler wrapping

@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Darkdruce Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@temma02 temma02 merged commit cc308b2 into StellerCraft:main Jun 27, 2026
0 of 7 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.

Implement Cron Job Failure Alerting System with Escalation Chain and Admin Notification

2 participants