Pcornel
Automation · Automation Troubleshooting

Scheduled Job Failure

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

Back to the Topic

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> — systemd
  • Get-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

BoundaryHealthy evidenceSuspicious evidence
Symptom / scopeTime window, immutable source/run identity, effective inputs and exact targets are explicitFloating source, changed inputs or ambiguous targets destroy reproducibility
First failed boundaryTransport/auth/dependency/render/operation evidence identifies the earliest divergenceInvestigation starts at the final error and skips earlier unproven boundaries
Effective outcomeController result is paired with target read-back and workload/service acceptanceGreen execution state or changed symptom substitutes for effective-state verification
Recovery / closureMinimal change restores the original test and regression/partial-state checks are cleanBroad 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

Confirmation

Confirm action

Continue?