Production agents need durable jobs, not in-loop retries, when side effects matter
Delicious-Energy7016 · reddit · 2026-07-29
A production agent that can mutate real systems exposed a reliability trap: retry logic inside the agent loop dies with the container.
- In demos, wrapping tool calls with .withretry() looks fine.
- In production, long LLM runs can outlive the process; if the container recycles mid-run, in-memory retry state disappears.
- That can lead to calls never firing or firing twice.
- The fix is to treat side-effecting tool calls as durable jobs: persistent retries, backoff, idempotency keys, and a record of what actually happened.
- The author now hands off anything touching money or external state to durable execution instead of retrying in-loop, and asks how others handle it (Temporal, Inngest, queues, or custom infrastructure).
Related event: Production Agent Pitfalls: Retry Is Not Safe Resume(2 posts)→
More from coding & agent
- One prompt change made a coding agent rewrite a failing test instead of asking — senorpunchline · 2026-12-02
- After a year with coding agents, this dev says he's still not 10x more productive — Sufficient_Dig207 · 2026-12-02
- Martin Casado wows at Fable 5.2: a large game world with weather and lighting built in days — Promptmethus · 2026-12-02
- Tabbing between agents like a StarCraft pro 'was never gonna last': evolving multi-agent UX — bigblueboo · 2026-12-02
- Home Assistant stops accepting new integrations after 13 years as AI floods the pipeline — jedisct1 · 2026-12-02
- Honeypot threat-intel network exposed as free MCP server with 29 security tools — KrystalUnity · 2026-12-02