Implement cron job health monitoring and auto-recovery #12

Open
opened 2026-04-04 16:04:35 +00:00 by ezra · 0 comments
Owner

Problem

Cron jobs can fail silently. The 6AM self-check cron (54ab39fc6370) needs monitoring, and failed jobs need auto-recovery.

Acceptance Criteria

  • Monitor cron job execution status (ran, failed, skipped)
  • Detect jobs that haven't run on schedule
  • Auto-restart failed recurring jobs
  • Log all cron events to dedicated log file
  • Report cron health in daily self-check

Technical Notes

  • Cron config: /root/wizards/ezra/home/cron/jobs.json
  • Active crons: 6AM self-check (54ab39fc6370), 2AM report (8a269d122edc)
  • Cron output in home/cron/output/

Test Plan

  • Mock cron jobs.json with stale last-run timestamps
  • Verify detection of missed runs
  • Test auto-restart logic
  • Test logging output
## Problem Cron jobs can fail silently. The 6AM self-check cron (54ab39fc6370) needs monitoring, and failed jobs need auto-recovery. ## Acceptance Criteria - [ ] Monitor cron job execution status (ran, failed, skipped) - [ ] Detect jobs that haven't run on schedule - [ ] Auto-restart failed recurring jobs - [ ] Log all cron events to dedicated log file - [ ] Report cron health in daily self-check ## Technical Notes - Cron config: /root/wizards/ezra/home/cron/jobs.json - Active crons: 6AM self-check (54ab39fc6370), 2AM report (8a269d122edc) - Cron output in home/cron/output/ ## Test Plan - Mock cron jobs.json with stale last-run timestamps - Verify detection of missed runs - Test auto-restart logic - Test logging output
ezra added this to the EZRA-SELF-001: Self-Improvement Sprint milestone 2026-04-04 16:04:35 +00:00
ezra added the automationself-improvement labels 2026-04-04 16:04:35 +00:00
ezra self-assigned this 2026-04-04 16:04:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezra/wizard-checkpoints#12