Use this when jobs should run only on certain days.
Calendars
Calendars in scheduling define allowed or blocked dates, such as business days, holidays or freeze periods, so jobs only run on suitable days.
1. Calendars define when jobs may run: business days, holidays, maintenance windows, freezes.
2. Central calendar.
3. Validate expressions.
4. Communicate.
5. Exceptions documented.
calendar rules → allowed run times
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
The primary procedure is: Expand the calendar for a bounded date range that includes a timezone or exclusion boundary; compare expected eligible instants with scheduler next-run decisions. Exercise failure-oriented cases such as DST gaps/overlaps, stale holiday calendars, floating times, timezone changes, conflicting include/exclude rules and jobs detached from the expected calendar so the test covers failure cases, not only the happy path.
Step 2 Common mistakes Narrow the fault
- Holiday calendars not maintained.
Step 3 Where it fails Narrow the fault
Failure analysis for Scheduling → Calendars should follow the path through the components: calendar definition → timezone expansion → recurrence/exclusion evaluation → scheduler eligibility → job dispatch. Tests should include edge cases such as DST gaps/overlaps, stale holiday calendars, floating times, timezone changes, conflicting include/exclude rules and jobs detached from the expected calendar. Recovery should preserve the evaluated instant and calendar version, repair the recurrence/timezone rule, recompute upcoming instances, then verify both an allowed and blocked boundary time.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Calendars define allowed or blocked days.
- Use them for holidays and change freezes.
- Keep them updated.
- Business calendar (holidays, maintenance windows) — exceptions
systemd-analyze calendar <expr>— validate- Blackout periods — change freezes
ReferenceWhy it matters1 section · depth on demand
In depth
Scheduling calendars define which days a job may or may not run: business days only, excluding holidays, change freezes or month-end periods. They keep automation aligned with business rules rather than plain cron intervals.
| Calendar use | Example |
|---|---|
| Business days | Reports Monday–Friday |
| Holiday exclusions | No changes on public holidays |
| Freeze periods | Block deployments during year-end |
| Maintenance windows | Patching only Sunday 01:00–05:00 |
Most cron implementations have no holiday awareness; use the automation platform's calendars or check a calendar file at the start of the job and exit cleanly if today is excluded.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Calendars in Scheduling is owned at runtime by the scheduler calendar evaluator that combines recurrence, timezone and include/exclude windows into eligible run times. The durable intent is versioned calendar definitions containing DTSTART/DTEND, RRULE/RDATE/EXDATE or platform-equivalent blackout/allow windows. Reliable automation must carry stable identity across the path: calendar ID/version, timezone identifier and schedule/job IDs referencing it. The consumer-visible target is the eligibility decision for a job or workflow at a concrete instant, not the wall-clock label alone. The key invariants are timezone is explicit, DST transitions are deterministic, exclusions override recurring windows as designed, and one instant is not executed twice unless explicitly intended.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Store and review versioned calendar definitions containing DTSTART/DTEND, RRULE/RDATE/EXDATE or platform-equivalent blackout/allow windows; pin or at least record implementation/model versions and keep environment-specific identity outside reusable logic where possible. The stable identity contract is calendar ID/version, timezone identifier and schedule/job IDs referencing it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Scheduling > Calendars. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://datatracker.ietf.org/doc/html/rfc5545 · confidence 94%Quick lookup tables
Scheduling → Calendars · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Scheduling → Calendars.
| 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 |
Deep reference
Healthy vs suspicious evidence
Output interpretation
At minimum retain calendar ID/version, timezone, recurrence rule, exclusions, evaluated UTC/local instant, eligibility result, next eligible time and linked job/schedule ID. The useful output makes ambiguity visible, links to the target identity from calendar ID/version, timezone identifier and schedule/job IDs referencing it, and provides enough context to safely decide whether a retry is permitted.