Use this when automation runs at fixed times or intervals.
Scheduling
Scheduling runs automation at set times or intervals with cron, systemd timers, Task Scheduler, CI schedules or platform schedulers, with care for time zones, overlaps and missed runs.
1. Scheduling runs automation at defined times.
2. Choose scheduler by platform/orchestration needs.
3. Prevent overlap.
4. Time zones/DST.
5. Alert on failures and missed runs.
calendar → scheduler → job → result
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
Record schedule/job ID, timezone, trigger/fire time, execution/run ID and target IDs; inspect the runtime/control-plane result; then query the intended job execution and resulting target state at the correct logical time through an independent read path and compare it with the versioned intent. The negative fixture should deliberately exercise risks such as DST/timezone drift, duplicate firing, missed triggers, scheduler downtime, dependency race, long-running overlap and successful trigger without successful target work, choosing the cases most relevant to time-based dispatch ownership, timezone/calendar model, missed-run/overlap policy and correlation between planned trigger and actual target work. For Automation → Scheduling, the evidence must connect the control-plane result to the intended job execution and resulting target state at the correct logical time and explain any gap between desired, controller-reported and consumer-visible state.
Step 2 Where it fails Narrow the fault
Failure analysis for Automation → Scheduling should follow the path through the components: clock/calendar → schedule evaluation → trigger → queue/dispatcher → job execution → target mutation → execution/read-back. Common failure classes include DST/timezone drift, duplicate firing, missed triggers, scheduler downtime, dependency race, long-running overlap and successful trigger without successful target work. Before retrying a mutating operation, read current target state using the stable identity schedule/job ID, timezone, trigger/fire time, execution/run ID and target IDs; if state is unknown, stop broad retries.
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.
Subtopics
Go one level deeper into this subject.
Scheduled jobs are automation set to run at fixed times or intervals, such as backups or reports.
Subtopic CronCron schedules use five fields — minute, hour, day of month, month, day of week — such as 0 3 * * 1-5 for 03:00 on weekdays, and tools like crontab.guru help check expressions.
Subtopic systemd Timerssystemd timers in scheduling pair a .timer unit with a .service, using OnCalendar=*-*-* 03:00:00, RandomizedDelaySec and Persistent=true, listed with systemctl list-timers.
Subtopic Windows Task SchedulerWindows Task Scheduler runs programs and scripts on schedules or events, configured in taskschd.msc, schtasks or Register-ScheduledTask, with history in the TaskScheduler Operational log.
Subtopic Job DependenciesJob dependencies make a scheduled job wait for others to finish successfully, such as running a report only after the nightly import, avoiding jobs reading incomplete data.
Subtopic CalendarsCalendars in scheduling define allowed or blocked dates, such as business days, holidays or freeze periods, so jobs only run on suitable days.
Subtopic Time ZonesTime zones matter for scheduling: decide whether jobs run in UTC or local time, and handle daylight saving changes, when 02:30 may happen twice or not at all.
Subtopic ConcurrencyConcurrency in scheduling controls whether a job may start while its previous run is still running — allow, skip or queue — preventing overlapping runs from conflicting.
Subtopic Missed RunsMissed runs happen when a scheduler or host is down at the scheduled time.
Subtopic RetryRetry in scheduling reruns a failed scheduled job after a delay a limited number of times, which suits transient failures but not jobs that are unsafe to repeat.
Subtopic Scheduler TroubleshootingTroubleshoot schedulers by checking whether the job actually started (scheduler log or history), the environment and user it runs as, paths and permissions, time zone and the job's own log.
- Know which time zone the scheduler uses.
- Prevent overlapping runs.
- Decide how missed runs are handled.
systemctl list-timers— Linux timerscrontab -l— cronGet-ScheduledTask | ? State -ne Disabled— Windows
ReferenceWhy it matters1 section · depth on demand
In depth
Scheduling runs automation at defined times or intervals — nightly backups, weekly compliance scans, monthly reports. A scheduler stores the definitions, starts jobs on time and records results.
| Scheduler | Platform |
|---|---|
| cron / systemd timers | Linux hosts |
| Task Scheduler | Windows |
| Kubernetes CronJob | Containers |
CI schedules (on: schedule) | GitHub Actions, GitLab |
| AWX/AAP, Rundeck schedules | Automation platforms |
Decide what happens if a run is missed (host down at 02:00), if the previous run is still going, and who is alerted when a scheduled job fails — silent failures of nightly jobs are common.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Automation → Scheduling is owned at runtime by the scheduler evaluating calendar/time expressions and dispatching jobs against a system clock/timezone. Its durable intent is versioned schedule, timezone/calendar policy, overlap/missed-run behavior and target job definition; the stable identity contract is schedule/job ID, timezone, trigger/fire time, execution/run ID and target IDs. The consumer-visible target is the intended job execution and resulting target state at the correct logical time. The operating invariants are that timezone/DST are explicit, missed-run policy is known, overlap/concurrency is controlled, dependencies are satisfied and actual target effect is verified. Follow the chain of components clock/calendar → schedule evaluation → trigger → queue/dispatcher → job execution → target mutation → execution/read-back and record which layer currently owns truth. The linked authority for bounded mechanics is systemd.timer Manual; documentation support is separate from observed lab/production Evidence.
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture at minimum schedule/job ID, timezone, planned fire time, actual start/end, missed/overlap decision, run ID, exit/result and target read-back. For time-based dispatch ownership, timezone/calendar model, missed-run/overlap policy and correlation between planned trigger and actual target work, prefer typed fields and stable IDs over human presentation text.