Cron explained with real examples (and incident-causing mistakes)
5-field cron guide: how to read it, production examples, common mistakes, and timezone checklist.
How to use this guide well
These guides are more useful when you read them as operational help, not as filler documentation.
Do not read linearly if you do not need to. Jump to the section that looks closest to the incident, payload, or config you are debugging.
The useful part is usually in the caveat, not in the snippet itself: timezone, dialect, schema, audience, type inference, or portability.
Once the reasoning is clear, use the related tool to inspect the real value, payload, or expression instead of working from memory.
What you will find in this guide
A quick scan before you dive in.
5
1
cron, devops, scheduling
Apply this guide in 3 steps
A short workflow tuned to the type of issue this guide covers.
Check whether the platform expects standard cron, Quartz, or a YAML subset before reusing examples blindly.
Focus on indentation, booleans, numeric coercion, and timezone assumptions instead of only checking that the file “looks right”.
Confirm the next run time, parsed config, or rendered manifest in the same environment where the job or deploy will execute.
How to think about cron (without memorizing)
Most incidents come from misunderstood expressions, not schedulers. Your goal is to read and explain when it runs.
Format (5 fields)
minute hour day-of-month month day-of-week. This tool focuses on 5-field cron.
Common mistakes
Wrong field ordering, out-of-range values, timezone assumptions, DOM vs DOW confusion.
FAQ
Seconds field supported? No.
Why different results across platforms? Cron dialects differ.
Timezone? Document UTC vs local.
Related tools
Use the matching tool when you want to validate or reproduce the issue described in this guide.
Keep exploring this topic
Move between deep guides and shorter task-focused articles so the site works like a connected knowledge base, not a dead end.
Basic validation for 5-field cron (min hour dom month dow) with *, */n and numbers. Useful to catch obvious mistakes before deploying.
Real snippets to convert YAML to JSON (and back). Includes dependencies and notes about implicit types and indentation.