
foojay · 5 min readBackend & APIs
When an agent dies after saying yes
Learn how to handle worker failures and deadline expirations in a Contract Net job dispatch system using Agenor, with database‑backed state, periodic reassignment, and attempt caps to ensure robustness.
- Store job deadlines in the database to survive manager restarts
- Use an atomic UPDATE with attempt and assignee checks to discard stale results
- Cap assignment attempts to prevent a single failing job from killing all workers