Skip to content
mentoor

Durable execution for agent jobs

For engineers

Queues, safe retries, persisted state and long waits so agent jobs survive crashes, deploys and slow humans

See where you stand

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?

Choose one answer

Check yourself · 2 of 5

Which agent step most clearly needs an idempotency key?

Choose one answer

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?

Choose one answer

Check yourself · 4 of 5

What is the main problem with while (!approved) { await sleep(5000); check(); } for a three-day approval?

Choose one answer

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?

Choose one answer

Topics

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

110 questions · last verified 2026-12