Durable execution
Running a long process so its progress is saved after every step, letting it survive crashes and pause for hours or days, then resume.
Durable execution runs a long process so that its progress is saved after every step. The process survives crashes and deploys, can pause for hours or days while it waits for a person or a slow system, and then resumes where it stopped.
An agent that waits for a manager’s approval, or a process that calls slow external systems, cannot live in one server request. A durable execution engine (Temporal, Restate, Inngest, Cloudflare Workflows, LangGraph checkpoints) records each completed step; after a restart it replays the record and continues where it stopped. Steps must be deterministic or idempotent, because they can run again. For an agent this also means a failed step is retried from the last good point, instead of rerunning, and paying for, every model call before it.
It is the plumbing under human in the loop approvals and under agent graphs. For processes that change several systems, pair it with the saga pattern, which defines how to undo earlier steps when a later one fails. Coding tools offer a lighter version in a dynamic workflow: a stopped run can resume in the same session from saved agent results.
Related terms
- Human in the loop: A person approves, edits or rejects the agent’s action before it takes effect.
- Saga pattern: A business process across several services run as a chain of local transactions, with a compensating action to undo each step if a later one fails.
- Agentic loop: The cycle of model call, tool call and result that an agent repeats until it stops.
- Idempotency (idempotency key): An operation is idempotent if doing it twice has the same effect as doing it once. Retries become safe.
- Agent graph (state graph): Modeling an agent as explicit nodes, edges and shared state, with checkpoints, so each step can be paused, resumed, inspected and tested.
- Dynamic workflow: An orchestration script the agent writes at run time. A runtime executes it, starting many subagents in phases and combining their results in code.
