validate_cron
Validates a cron expression for common mistakes and silent failures, catching impossible schedules, leap-year edge cases, and OR-semantics gotchas. Returns warnings, suggestions, and estimated yearly run count.
Instructions
Deeply validate a cron expression for correctness and common mistakes. Catches: impossible schedules (e.g. day 31 in Feb), OR-semantics gotchas (dom AND dow both restricted = either matches, not both), midnight scheduling spikes, uneven step values (*/7), leap-year edge cases, weekday-only warnings, and more. Returns warnings, observations, optimization suggestions, and an estimated yearly run count. Use this BEFORE deploying a cron job to catch silent failures.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The cron expression to validate. |