Use it when the symptom is “Scheduled Job Failure”: work through the layers in order and stop at the first one that fails.
Scheduled Job Failure
Scheduled Job Failure isolates jobs that do not trigger, start with wrong context, overlap, miss dependencies or fail after launch by separating scheduler decision from worker execution and target outcome.
1. Scheduled job failure: schedule wrong, disabled, environment differences, credentials, overlap.
2. Run manually as the same identity.
3. Check logs.
4. Dead man's switch.
5. Fix and verify next run.
schedule → trigger → environment → job → result
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-ScheduledTask | Select-Object TaskName,State,TaskPathPrimary Commands
Configuration and operational commands for this Topic.
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 Operational evidence path Verify boundary
schedule/time zone → scheduler decision → misfire/catch-up → queue admission → worker/run identity → lock/concurrency → job execution → target update → freshness/acceptance
Healthy evidence: scheduler fire and worker run correlate, DST/misfire/concurrency policy is explicit, execution completes and target freshness meets the intended period.
Step 2 Telling causes apart Verify boundary
Known-good is the intended task present and enabled, the next trigger computed as expected, a scheduled (not merely manual) run completing with success/exit code 0, and the job's expected output/target state appearing. Broken state is missing/disabled task, missed trigger, non-zero last result or successful scheduler launch with failed action. Get-ScheduledTask shows registration/state only; scheduled execution history and workload read-back close the boundary.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: only cron expression is inspected, time zone/DST is ignored, overlapping runs occur, or a scheduler green state substitutes for data/service freshness.
Step 4 Observation-driven branch and next-check logic Narrow the fault
Run Get-ScheduledTask | Select-Object TaskName,State,TaskPath and locate the exact task. If missing/disabled, fix registration or enablement; if Ready/Running exists, inspect trigger timing, principal/logon type, action path/arguments, working directory and Task Scheduler operational history/last result. If manual execution works but scheduled execution fails, compare identity, environment, network/credential availability and interactive assumptions. Verify the system clock/time zone before editing cron-like schedules.
Step 5 Common mistakes Narrow the fault
- Job environment missing PATH or variables.
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.
- Schedule configured ≠ trigger actually fired.
- Trigger fired ≠ worker started.
- Worker started ≠ job completed.
- Job completed ≠ intended periodic target state is fresh.
systemctl status <timer> <service>; journalctl -u <service>— systemdGet-ScheduledTaskInfo <n>— Windows- Scheduler run history — missed/failed
ReferenceWhat it is1 section · depth on demand
Core model
Pin schedule expression/time zone and scheduler revision; inspect next/last run and misfire/catch-up policy; verify scheduler/controller health and queue admission; capture execution identity/environment; detect overlaps/locks; then troubleshoot the child job and verify target outcome.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
Scheduled Job Failure involves schedule definition, enabled state, trigger calculation, execution identity, working directory/environment, action command and last-run result. Windows Get-ScheduledTask reports registered task identity/state/path, while task history/last result and the action's own output own execution success. A task in Ready state can still have failed every recent run.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Scheduler configuration or a recorded fire shows only a scheduling boundary; execution and business freshness remain separate.
Close with Follow one job ID through queue and worker, verify exactly-once/idempotent target outcome, read effective state and run the original workload after terminal completion. and state what the evidence does not show.
Method
A scheduled job failure is a job that did not run at the scheduled time, or ran and failed. Investigate both possibilities.
1. Did it trigger? Check the scheduler's history (cron log, systemd timer, Task Scheduler, platform schedule).
2. Did it start? Permissions, missing executable, account password.
3. Did it finish? Exit code, timeout, overlap with previous run.
4. Compare its environment with an interactive run.
5. Add a dead man's switch alert so missed runs are noticed.
systemctl list-timers --all | grep backup
journalctl -u backup.service -n 50
| Symptom | Common cause |
|---|---|
| Missed after DST change | Time zone/cron interpretation |
| Runs but no effect | Wrong working directory |
| Overlapping runs | No lock; previous run still active |
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 Automation Troubleshooting > Scheduled Job Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Scheduled Job Failure troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Scheduled Job Failure.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |