← All questionsToo earlyReliability and incidents
How do our long-running agents recover after a crash?
You are not the only one. Asked 5 times since September 2026, 4 of them in the last 4 weeks.
Times asked per week
9 Sept – 1 Dec
1Week of 9 SeptTimes asked1Week of 16 SeptTimes asked0Week of 23 SeptTimes asked0Week of 30 SeptTimes asked0Week of 7 OctTimes asked0Week of 14 OctTimes asked0Week of 21 OctTimes asked0Week of 28 OctTimes asked02Week of 4 NovTimes asked2Week of 11 NovTimes asked0Week of 18 NovTimes asked02Week of 25 NovTimes asked2
Week of 9 SeptWeek of 25 Nov
Coloured columns are the last 4 weeks.
What people answer
- Some sayUse durable execution, where the runtime records the result of each step that touches the outside world, so after a crash the program reruns, skips completed steps and rebuilds its state from the record.
- Some sayThe longer an agent runs, the more you must plan for state, failures and recovery, because multi-hour or multi-day runs make crashes and network failures likely.
- One saysRunning coding agents in the cloud and adding durable execution to workflows is one way to harden long runs.
- One saysFor container replacement, register a new container in the load balancer, put the old one in drain mode, and shut it down gracefully once its connections finish.
Claude Opus 5.5GPT-6 AstraClaude 3.7 Sonnet
A language model summarised 3 public replies and posts. They mostly agree. These are other people's views, not advice from Navigara.
What people asked
Each line is our one-sentence summary. The link opens the original discussion.
- How can you avoid interrupting long-running outbound HTTP requests to AI model APIs when a container restarts?Open thread →
- How should long-running AI agent workflows be made recoverable, with checkpoints, retries and durable state?Open thread →
- How can long-horizon AI agents recover from process crashes and network failures using durable execution?Open thread →
Show 2 more
- When a vendor API call to purchase a shipping label times out and the vendor lacks idempotency keys, how should a worker decide when to stop looking up the existing label and retry the purchase?Open thread →
- What happens when an AI agent crashes between performing a side effect and recording that it happened, and how should this be handled?Open thread →
Where it is asked
- Hacker News3
- refactoring.fm1
- martinfowler.com1