Automation · Scheduling
Calendars
Cheat sheet · https://pcornel.dk/topic.php?topic=5353
Answer
Calendars in scheduling define allowed or blocked dates, such as business days, holidays or freeze periods, so jobs only run on suitable days.
Remember
- Calendars define allowed or blocked days.
- Use them for holidays and change freezes.
- Keep them updated.
First checks
- Business calendar (holidays, maintenance windows) — exceptions
systemd-analyze calendar <expr>— validate- Blackout periods — change freezes
Verify in this order
calendar rules → allowed run times
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Scheduling → Calendars · operational reference
| Layer | Scheduling → Calendars operational reference |
|---|---|
| Runtime/ownership | calendar-aware automation scheduling · the scheduler calendar evaluator that combines recurrence, timezone and include/exclude windows into eligible run times |
| Persistent intent | versioned calendar definitions containing DTSTART/DTEND, RRULE/RDATE/EXDATE or platform-equivalent blackout/allow windows |
| Verification | Expand the calendar for a bounded date range that includes a timezone or exclusion boundary; compare expected eligible instants with scheduler next-run decisions. |
| Expected interpretation | Eligible and blocked instants match the reviewed calendar in the intended timezone, DST/exclusion boundaries are deterministic, and the linked job is dispatched only inside allowed windows. |
| Recovery boundary | preserve the evaluated instant and calendar version, repair the recurrence/timezone rule, recompute upcoming instances, then verify both an allowed and blocked boundary time |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5353