Pcornel
Automation · GitHub Actions

Jobs

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

Back to the Topic

Answer

Jobs in a GitHub Actions workflow run on separate runners, in parallel by default or in order with needs:, and each job is a sequence of steps sharing one workspace.

Remember

  • Jobs run in parallel by default.
  • needs: creates order and passes outputs.
  • Each job runs on its own runner.

First checks

  • gh run view <run-id> — jobs
  • needs: dependencies — ordering
  • timeout-minutes per job — limits

Verify in this order

workflow → jobs (parallel/needs) → results

Where it usually breaks

Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.

GitHub Actions → Jobs · operational reference

LayerGitHub Actions → Jobs operational reference
Runtime/ownershipGitHub Actions jobs current · identify controller/worker/target ownership before mutation
Persistent intentVersioned configuration/playbook/workflow with explicit dependencies and least-privilege identity
Verificationgh run view <run-id> --json jobs --jq ".jobs[] / {name,databaseId,status,conclusion,startedAt,completedAt}"
Expected interpretationEach expected job instance exists with the correct dependencies/matrix/runner/permissions and has a conclusion that is interpreted separately from downstream service state.
Recovery boundaryPreserve correlation IDs + pre-state, then verify target/service independently after remediation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5519

Confirmation

Confirm action

Continue?