Use this when scheduled jobs should retry on failure.
Retry · Scheduling
Retry 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.
1. Retry failed jobs with backoff for transient issues.
2. Limit attempts.
3. Jobs must be idempotent.
4. Alert after final failure.
5. Log each attempt.
failure → backoff → retry → alert after max
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 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 failure classification, maximum attempts, backoff/jitter, idempotency/deduplication and stopping retries for permanent or ambiguous failures.
Step 2 Common mistakes Narrow the fault
- Retries overlapping with the next scheduled run.
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.
- Limit retries for scheduled jobs.
- Delay between attempts.
- Only retry jobs that are safe to repeat.
- Retry policy (count, backoff) — configuration
- Idempotent job design — safe retry
- Alert after final failure — escalation
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Retry for scheduled jobs handles runs that fail for temporary reasons. Most schedulers do not retry by themselves — cron simply runs the next time — so retry logic must live in the job or in a scheduler that supports it.
| Scheduler | Retry support |
|---|---|
| cron | None; wrap the command |
| systemd | Restart=on-failure with RestartSec on the service |
| Kubernetes CronJob | backoffLimit in the job template |
| Rundeck, AWX, Jenkins | Retry settings per job |
Avoid retries that overlap the next scheduled run, and alert when a job still fails after retries — a scheduled job that fails quietly every night is a common way to discover missing backups months later.
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 > Retry. 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
For failure classification, maximum attempts, backoff/jitter, idempotency/deduplication and stopping retries for permanent or ambiguous failures, prefer typed fields and stable IDs over human presentation text.