Agent retried for 16 hours silently? Author introspects durable runtime with Postgres persistence
slateraligator · reddit · 2026-09-02
An author shared a production incident where an agent silently retried 1,200 times over 16 hours due to a misconfiguration. In response, they open-sourced 'Toren', a durable agent runtime (Apache 2.0). Key features include:
- State Persistence: Every step is written to Postgres before execution, allowing recovery from crashes/OOM without re-paying for API calls.
- Retry Logic: Exponential backoff and hard caps on attempts.
- External Cancellation: Ability to kill runs from outside.
- Cost Tracking: CI pipeline kills the worker at every step to verify billing.
The author argues that long-running agents must be durable to survive deploys and API changes.
More from coding & agent
- Dev feedback: decoupling rex sessions from native windows is harder to adapt to than expected — alexisgallagher · 2026-12-05
- Salesforce research: buyer agents concede too easily, images boost persuasion ~17% — msrivastav13 · 2026-12-05
- Grok Build launches agent-driven post-quantum cryptography migration after NSA advisory, with $1,000 credits — ns123abc · 2026-12-05
- Seroter's reading list: post-quantum prep, agent harnesses, and life after 99% AI code — rseroter · 2026-12-05
- WSDM Cup 2027 Offers $10k to Build Autonomous Community Notes Agents — sanmikoyejo · 2026-12-05
- Trying Copilot Studio MCP for agent cloning and Power Automate sync: janky but workable — koltregaskes · 2026-12-05