Use this when workflows must remember progress.
State · Workflow Automation
Workflow state stores where a workflow is, the outputs of completed steps and its variables, so it can pause, wait for approval, resume and be inspected.
1. Workflow state records progress and data between steps.
2. Persist for resume after crashes.
3. Avoid storing secrets in state.
4. Keep state small.
5. Inspectable.
step results → state store → next step
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 Original-test verification closure Verify boundary
State explicitly what each observation supports and what it does not show.
Step 2 Common mistakes Narrow the fault
- State kept only in memory.
- Secrets stored in state.
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.
- State stores step outputs and variables.
- It allows pause and resume.
- Persist it durably.
- Persisted workflow state — resumability
- State size limits — performance
- State inspection tool — debugging
ReferenceWhy it matters1 section · depth on demand
What it is
Workflow state records progress, inputs and outputs of each step, so runs can be resumed, audited and debugged.
ReferenceImportant terms & boundaries2 sections · depth on demand
Platform, version and operating-envelope scope
Workflow engines (Ansible AAP/AWX, GitHub Actions, Jenkins, n8n, Temporal and others) store run state differently: some keep full step history and outputs in a database, others only job logs and artifacts. Check how long your engine retains history and whether runs can resume after a restart.
In depth
Workflow state is the record of where a run is: which steps have completed, their inputs and outputs, what failed and what is waiting. Durable state lets a workflow survive restarts, wait days for an approval, resume after failure and show an audit trail of what happened.
| State stored | Purpose |
|---|---|
| Step status | Resume, progress display |
| Step outputs | Inputs to later steps |
| Timestamps and actor | Audit |
| Errors | Troubleshooting |
| Pending approvals/timers | Long-running workflows |
Keep state outside the worker process (database, workflow engine), and never put secrets in it — workflow history is often visible to many users. Large outputs belong in artifact storage with a reference in the state.
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 Workflow Automation > State. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%