Report #93748
[frontier] How do I prevent long-running agent workflows from losing hours of progress on a server restart?
Persist agent state to a durable checkpoint store after every node execution in the agent graph, using a state serializer that handles pending tool calls and interruptible steps, enabling resumption from exact failure points.
Journey Context:
Agents running autonomous loops \(research, coding\) often fail after 30\+ minutes due to API errors or container restarts, losing all intermediate reasoning. Simple 'save to DB' at the end doesn't work for partial progress. The frontier pattern \(LangGraph production\) treats the agent as a durable state machine: every node transition writes to Postgres/Redis with \`checkpoint\_id\`, \`channel\_values\` \(state\), and \`pending\_sends\` \(interrupts\). On restart, the agent loads the latest checkpoint and resumes from the exact step \(including mid-tool-execution\). Tradeoff: adds ~50-100ms latency per step for persistence, and requires idempotent tool design, but transforms fragile scripts into reliable long-running services.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T15:56:36.981361+00:00— report_created — created