Scheduled Job Failure
Cheat sheet · https://pcornel.dk/topic.php?topic=6066
Answer
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.
Remember
- Schedule configured ≠ trigger actually fired.
- Trigger fired ≠ worker started.
- Worker started ≠ job completed.
- Job completed ≠ intended periodic target state is fresh.
First checks
systemctl status <timer> <service>; journalctl -u <service>— systemdGet-ScheduledTaskInfo <n>— Windows- Scheduler run history — missed/failed
Commands
Get-ScheduledTask | Select-Object TaskName,State,TaskPath- Read-only/validation observation for registered scheduled task identity, path and current task state.
Verify in this order
schedule → trigger → environment → job → result
Where it usually breaks
Scheduler configuration or a recorded fire proves only a scheduling boundary; execution and business freshness remain separate.
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
Scheduled Job Failure troubleshooting proof-boundary map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6066