Durable execution
Definition
Running code so that its progress is recorded step by step, letting it resume after a crash or restart instead of starting again.
In more detail
A durable execution engine stores the result of each step. If the process dies, the code is replayed, completed steps return their recorded results instead of running again, and execution carries on from the first unfinished step. Retries, timeouts and long waits, such as days for a human approval, become part of the platform.
Long-running agents benefit because a forty-step task that fails at step thirty does not repeat thirty model calls and tool actions, some of which may not be safe to repeat. Temporal is the best-known engine; LangGraph checkpoints and several agent runtimes offer similar guarantees.
Related terms
Agent loop
The repeating cycle of model call, tool call, observation and next decision that drives an agent until the task is done or a limit is hit.
Agentic workflow
A mostly predefined sequence of LLM calls and tool steps, where the developer fixes the path and the model fills in each step.
Human in the loop
A design in which a person reviews or approves an AI system's actions or outputs at defined points before they take effect.
Read more about Durable execution
- Temporal
Durable execution platform that lets long-running workflows survive crashes and restarts.
- Agent reliability
Making agents finish tasks predictably with guardrails, retries and approvals.
- LangGraph
Graph-based orchestration for stateful, long-running agents.