Skip to content

[codex] add cron diagnostics and scheduler failure state#36

Merged
zachyzissou merged 1 commit intomainfrom
codex/cron-diagnostics-status
Feb 24, 2026
Merged

[codex] add cron diagnostics and scheduler failure state#36
zachyzissou merged 1 commit intomainfrom
codex/cron-diagnostics-status

Conversation

@zachyzissou
Copy link
Owner

Summary

  • persist generation failure metadata to state (last_error, last_failure_at, last_failure_context, consecutive_failures)
  • clear failure metadata on successful generation
  • expose cron diagnostics in /status (cron_supported, cron_error) and include failure/freshness details
  • expose cron diagnostics in /health (checks.cron_schedule plus cron payload)
  • make scheduler fail fast on invalid/unsupported cron config (no silent fallback); recheck periodically and continue stale watchdog behavior
  • add integration tests for cron/failure diagnostics and failure-state persistence

Validation

  • python3 -m black app/server.py test_integration.py
  • python3 -m py_compile app/server.py test_integration.py
  • npm run -s lint:js
  • npm run -s lint:md

Notes

  • local runtime tests were not executed here because this environment has Python 3.9 while the project targets 3.11+.

Copilot AI review requested due to automatic review settings February 24, 2026 22:28
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zachyzissou zachyzissou merged commit 49f81a4 into main Feb 24, 2026
13 checks passed
@zachyzissou zachyzissou deleted the codex/cron-diagnostics-status branch February 24, 2026 22:29
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.

2 participants