Durable execution for agent jobs
For engineers
Queues, safe retries, persisted state and long waits so agent jobs survive crashes, deploys and slow humans
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Why should an agent run that takes several minutes be started from a queue rather than inside the web request?
Check yourself · 2 of 5
Which agent step most clearly needs an idempotency key?
Check yourself · 3 of 5
In an event-history engine such as Temporal, what happens to a model call that already finished when the workflow is replayed after a crash?
Check yourself · 4 of 5
What is the main problem with while (!approved) { await sleep(5000); check(); } for a three-day approval?
Check yourself · 5 of 5
Your team writes Python agents, owns a Postgres database and has no platform engineers. Which first step is the most sensible?
Topics
- Running agent jobs on queues and workers4 min read · Job queues, worker pools, concurrency limits, back-pressure and dead-letter queues for jobs that keep failing
- Safe retries with idempotent tool calls4 min read · Retrying model calls is cheap, but retrying a payment or an email is not: idempotency keys and at-least-once delivery
- Persisting agent state between steps5 min read · Event history, replay and checkpointers: model calls as recorded activities and what must be saved after each step
- Durable waits for human approval4 min read · Durable timers and signals that let a workflow wait days for an approval, with timeouts and no busy polling
- Choosing a durable execution engine5 min read · Temporal, Restate, Inngest, DBOS, cloud step functions and framework checkpointers compared by hosting, language and replay model
Start here
- Temporal documentation (opens in a new tab)DocsFree
Workflows, activities, signals and timers, with the replay model explained from the source.
- Persistence (LangGraph docs) (opens in a new tab)DocsFree
How checkpointers save graph state after each step so a run can resume or wait.
- Restate documentation (opens in a new tab)DocsFree
A durable execution engine that journals each step; useful for comparing replay designs.
Helps to know first
110 questions · last verified 2026-12