Skip to content

Cron explained with real examples (and incident-causing mistakes)

5-field cron guide: how to read it, production examples, common mistakes, and timezone checklist.

← Guides
Updated: 2026-03-22

How to use this guide well

These guides are more useful when you read them as operational help, not as filler documentation.

Start from the section that matches the failure

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.

Copy only after you understand the constraint

The useful part is usually in the caveat, not in the snippet itself: timezone, dialect, schema, audience, type inference, or portability.

Then validate with the tool

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.

Sections

5

Code examples

1

Related topics

cron, devops, scheduling

Apply this guide in 3 steps

A short workflow tuned to the type of issue this guide covers.

Validate the exact dialect

Check whether the platform expects standard cron, Quartz, or a YAML subset before reusing examples blindly.

Inspect rendered values

Focus on indentation, booleans, numeric coercion, and timezone assumptions instead of only checking that the file “looks right”.

Test the production interpretation

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.

Production examples

Copy and adjust:

text
*/5 * * * *
0 2 * * *
30 9 * * 1-5
0 0 1 * *

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.