Skip to main content

Which platforms support durable execution for AI agents?

Summary

  • Durable execution means an agent run's progress is stored outside the process running it, so a crash, restart or redeploy resumes or replays the run and doesn't lose it.
  • It can live at three layers: the agent framework's checkpoints, the agent server and runtime that host the agent, or a general-purpose durable workflow engine wrapped around the agent.
  • Databricks provides it at the server layer: DurableAgentServer on Agent Runtime keeps run state in a Runtime Store on a Databricks-managed Lakebase project and starts replacement attempts for stalled runs.
  • The open source LangGraph framework adds checkpoint durability keyed by thread_id, and the Databricks LangGraph template resumes recovered runs from the last checkpoint in the session store.
  • Durable isn't exactly-once: recovery can run agent code again, so external side effects need idempotency keys.

Which platforms support durable execution for AI agents?

Look for durable execution in the layer that hosts your agent, not only in the framework. A durable platform stores each run's state outside the worker, detects runs whose worker died, restarts them on a healthy worker, and treats a retried request as the same run. Databricks supports this natively: DurableAgentServer on Agent Runtime gives agents persistent run state, crash recovery, idempotent invocations and ordered sessions. Frameworks such as the open source LangGraph add checkpoint-level durability inside the agent loop, and the two layers work together.

What is durable execution for AI agents?

Durable execution is the guarantee that a run's progress survives the failure of the process running it. An agent run can span many model calls, tool calls and a pause for human approval. Without durability, a worker restart, a redeploy or a dropped connection throws that work away, and a client retry can start it twice. With it, the platform records the run's request, status, events and intermediate state, and a replacement worker picks up from that record.
Durability can come from three places:

  • The agent framework, which saves loop or graph state at checkpoints and resumes from the last one. It needs a persistent backend and something that triggers the resume.
  • The agent server and runtime, which persist every invocation, detect stalled runs, start replacement attempts and deduplicate retries.
  • A general-purpose durable workflow engine, which records step history for code structured as workflow steps. It's another system to operate alongside the agent.

Key capabilities to evaluate

Capability Why it matters
Persistent run state Status, events and results survive worker restarts
Automatic crash recovery Stalled runs restart without manual intervention
Idempotent invocations A retried request returns the existing run and doesn't start a duplicate
Ordered sessions Turns in one conversation run one at a time
Stream reconnection Clients resume from the last event after a dropped connection
Background runs Work continues without an open client connection
Checkpoint resume A recovered run restarts from its last saved step, not from scratch
Human-in-the-loop pause A run waits for approval and continues in the same session
Any-framework support Durability shouldn't force a rewrite of the agent loop

How Databricks approaches durable execution

Databricks puts durability in the agent server. DurableAgentServer, part of AgentKit in the databricks-agentbricks package, wraps your agent loop in an HTTP server and tracks every invocation.

  • Persistent run state. When you deploy with the Agent Bricks CLI (Beta), agentbricks deploy provisions a dedicated Runtime Store database for the deployment in a Databricks-managed Lakebase project. Results and events survive worker restarts, and any instance can serve status and reconnection requests.
  • Crash recovery. Running attempts send heartbeats. When they stop, the server starts a replacement attempt and calls your @app.recover handler with the original input. Recovery covers interrupted workers, not exceptions raised by your code.
  • Idempotency and ordering. Each invocation carries a client-generated UUID that acts as an idempotency key, and invocations in the same session run one at a time, in order.
  • Framework checkpoints. The LangGraph template resumes a recovered run from its last checkpoint in the session store, and the OpenAI Agents SDK template replays the request in the same session. Agent sessions (Beta) are backed by Lakebase and work with agents on any framework.
  • Every request mode. Synchronous, streaming and background invocations share one handler, and clients reconnect to a stream with GET /api/invocations/<id>/events?after=<event-id>.

Agent Runtime hosts the server on Databricks Apps with an authenticated endpoint, a service principal identity and MLflow tracing. Agents built on the earlier app templates can use the legacy LongRunningAgentServer, which keeps run state in a Lakebase database you configure.

What durable execution doesn't promise

Durable doesn't mean exactly-once. An interrupted attempt may have called external systems before the replacement attempt starts, so recovery can repeat those calls. Put idempotency keys on payments, tickets and writes. The server doesn't cap recovery attempts either, so check context.attempt and stop when retrying no longer helps. LangGraph's checkpointer docs make a related point about timing: in "exit" mode, intermediate state isn't saved, so mid-run crash recovery isn't possible, and "sync" is the most durable mode.

FAQs

Does Databricks support durable execution for agents on any framework?

Yes. Agent Runtime and DurableAgentServer don't require a specific framework. The CLI ships LangGraph and OpenAI Agents SDK templates, and other agents can register their own invoke and recovery handlers.

Where does Databricks store run state?

In a Runtime Store that agentbricks deploy provisions for each deployment in a Databricks-managed Lakebase project. You don't create or bind it yourself, and deleting the deployment removes it.

Is local development durable?

No. agentbricks dev uses an in-process Runtime Store, so run state is lost when the process stops and interrupted work isn't restarted.

Can a run that acts as the requesting user be recovered?

No. The server keeps the user's credential in memory for the active attempt only, so an interrupted request-user invocation can't be recovered.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.