What is durable execution?

Durable execution is a runtime architecture that persists each step of an AI agent’s work to storage so long-running tasks survive server crashes, deployments, and multi-hour human approval waits. Safe durable systems record completed side effects carefully so interruptions never accidentally send duplicate emails or double-charge customers.

By Sacha Arbonel, Founder and CTOLast updated
  • Also called
  • Durable jobs
  • Long-running agents

Why does durable execution matter?

Agents frequently call slow APIs or pause overnight waiting for a person to approve a refund. Standard stateless HTTP handlers drop that state on restart or timeout, leaving workflows half-finished or dangerously retried.

Agent work can take minutes or days, especially when it waits for an approval. Durable execution records each step, so a restart doesn’t lose the work and a paused run can resume later.

The hard part is side effects. Blindly replaying an interrupted step can send an email twice, so safe systems resume what is safe to resume and surface the rest for a person to decide.

Key characteristics of durable execution

  • Checkpoints every step, tool output, and pending approval to durable storage.
  • Survives process restarts, network hiccups, and multi-day approval waits without losing progress.
  • Distinguishes safe read steps from external side effects to avoid duplicate writes on recovery.
  • Preserves full evidence when a job stops mid-flight so operators can inspect and decide next steps.

How durable execution works step by step

  1. 1. Checkpoint stepPersist tool outputs to durable log
  2. 2. Pause cleanlyWait hours for human approval
  3. 3. Survive restartState stays intact across deploys
  4. 4. Resume safelyContinue without replaying side effects
How durable execution persists progress across a long approval wait.

Durable execution vs. standard request-response

DimensionDurable executionStandard HTTP request
Max durationMinutes, hours, or days (across waits)Seconds before request timeout
Server restartState preserved; safe steps resumeIn-flight progress lost immediately
Human approvalsPauses cleanly and resumes on decisionRequires custom polling and state tables
Side-effect safetyRecords step outcomes to prevent blind replayRetries risk duplicate external actions

Example in practice

How Norilu handles durable execution

Frequently asked questions

Why shouldn’t a durable runtime automatically replay every interrupted tool call?
If a crash occurred right after an external API processed a payment or sent an email—before the response returned—blindly replaying that call would trigger the action twice.
When does an agent need durable execution?
Whenever runs involve multi-step background jobs, webhooks, schedules, slow tools, or human-in-the-loop approvals that outlive a single HTTP request.

Go deeper