Cron migration checklist: twelve checks before you move a schedule
One-line answer: What to verify when moving a crontab to a cloud scheduler or a calendar, in the order that catches real incidents.
Changing schedulers looks like copying a string, but the time zone, field order, interpretation rules and failure handling all change underneath. Work through these checks and most incidents never happen.
Twelve checks before you move
- Compare the field count and order of the source and target schedulers.
- Check the weekday numbering: 0 = Sunday or 1 = Sunday?
- Find every expression that restricts both day-of-month and weekday (OR versus AND).
- Confirm whether the time zone is explicit and what the default is.
- Decide what should happen on daylight saving transition days.
- Check whether seconds or a year field are supported.
- Check support for
L,W,#and?. - Choose the concurrency policy: allow, forbid or replace.
- Set the allowed lateness for a missed schedule.
- Move retry behaviour and notification paths.
- Make sure logs and monitoring can see the new scheduler's execution IDs.
- Write a rollback plan and a period where double execution is prevented.
source 0 9 * * 1-5
Quartz 0 0 9 ? * MON-FRI
EventBridge 0 9 ? * MON-FRI *
| Aspect | Source crontab | Target Quartz |
|---|---|---|
| Field count | 5 | 6 (with seconds) |
| Weekday numbering | 0 = Sunday | 1 = Sunday |
| Day and weekday | OR | one only, the other is ? |
| Default zone | server local | scheduler setting |
Compare the expansions
Before and after the move, print the occurrence times for the same period side by side. Three months at minimum, twelve if possible, including the end of February, a leap year, year-end and any DST transitions. Those dates expose boundary bugs. CronPulse's next-run list and multi-zone table make a convenient comparison sheet.
Run both for a while
A safe migration keeps both schedulers active, with only one of them doing real work, guarded by a lock or a flag. Compare the occurrence times, then switch off the old one. Idempotency keys are mandatory during this period.
Document the schedule
If schedules live in code, record the expression, time zone, owner, upstream and downstream dependencies, failure behaviour and last verification date next to it. Someone should be able to explain why a job runs at 04:17.
Finish small
Migrate one small job first. Watch its run times and results for a week before moving the next. Moving everything at once produces duplicate and missing runs whose cause is hard to untangle.
Paste an expression and see its next run times right away.
Open CronPulseFrequently asked questions
Can I just copy a crontab into a cloud scheduler?
The syntax may look identical while the default time zone, weekday numbering, day/weekday OR rule and seconds support differ. Always compare the expanded run times after copying.
I see duplicate runs after the migration. What first?
Check whether both schedulers are still active, whether retry policies overlap, and whether the date is a DST repeated hour. Apply an idempotency key first to stop the damage.
Sources
Related reading
- Cron in five fields: minute, hour, day, month, weekdayWhat each of the five Unix cron fields means, which values are allowed, and how to read an expression without guessing.
- Cron special characters: *, /, -, commas, ?, L, W and #The eight symbols that make cron expressive, what each one means, and where implementations disagree.
- Five-field Unix cron versus six-field Quartz and EventBridgeSeconds, weekday numbers, the ? rule and the year field: what changes when you move a schedule between cron dialects.
- Daylight saving and cron: the day 02:30 disappearsHow clock changes affect cron runs, and how to move jobs out of the 2–3 AM danger window.