Pcornel
Automation · Scheduling

Calendars

Cheat sheet · https://pcornel.dk/topic.php?topic=5353

Back to the Topic

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

LayerScheduling → Calendars operational reference
Runtime/ownershipcalendar-aware automation scheduling · the scheduler calendar evaluator that combines recurrence, timezone and include/exclude windows into eligible run times
Persistent intentversioned calendar definitions containing DTSTART/DTEND, RRULE/RDATE/EXDATE or platform-equivalent blackout/allow windows
VerificationExpand the calendar for a bounded date range that includes a timezone or exclusion boundary; compare expected eligible instants with scheduler next-run decisions.
Expected interpretationEligible 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 boundarypreserve 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

Confirmation

Confirm action

Continue?