Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Job Dependencies

Direct answer

Job 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.

When to use this

Use this when jobs must wait for other jobs.

First 30 seconds

1. Job dependencies: run B after A succeeds.

2. Use orchestrators (workflow engines, pipelines) instead of time offsets.

3. Handle upstream failure.

4. Timeouts.

5. Visualise.

Operational verification

job A success → triggers job B

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
job scheduling and timer semantics
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformjob scheduling and timer semantics · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when jobs must wait for other jobs.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 DAG/order constraints, upstream success criteria, data/artifact handoff, cycle detection and behavior when a dependency is late or failed.

Step 2 Common mistakes Narrow the fault
  • Using fixed time gaps instead of real dependencies.
  • Downstream jobs running after an upstream failure.
Evidence references

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.

observation · 1
Key points
  • Dependencies stop jobs from reading incomplete data.
  • Define what counts as upstream success.
  • Set timeouts for waiting.
Key checks
  • DAG/dependency definition — ordering
  • Upstream success checks — gating
  • Timeouts for waiting — deadlock prevention
ReferenceWhy it matters1 section · depth on demand

What it is

Job dependencies start a job only when another has finished (successfully), forming a chain or DAG. Most CI/workflow tools express this explicitly (needs:, depends_on).

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Job dependencies order scheduled jobs that rely on each other — export data before importing it, back up before compacting, collect configurations before running compliance checks. Scheduling them at fixed times ("export at 01:00, import at 02:00") only works until the export takes longer than an hour.

Better approaches:

ApproachExample
Chain in one jobScript runs step A, then B
Scheduler dependenciesRundeck job references, Jenkins downstream jobs, systemd After=/Requires=
Workflow engineDAG with explicit dependencies
Completion markerB waits for a file/flag written by A

Make the dependent job verify its input (fresh timestamp, expected size) rather than trusting that the earlier job succeeded.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docjob scheduling and timer semantics current

Authoritative/upstream documentation reviewed for bounded claims in Scheduling > Job Dependencies. 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%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For DAG/order constraints, upstream success criteria, data/artifact handoff, cycle detection and behavior when a dependency is late or failed, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?