Integrations

Durable workflows still need a recovery plan: what do you do when runs get stuck in Running?

Durable runs can sit in Running and never fail. Alarm on them, make every side effect safe to repeat, and replay only what is incomplete.

2 min readDEV Group

Plan the recovery

Plan for it before it happens: make every side-effecting step safe to run twice, alarm on runs that outlive their expected duration, and recover with narrow, deliberate replays once the fix is verified. Durable execution moves retries and state into a platform. It does not remove the failure modes. Public reporting on an October 2026 incident at a hosted workflow platform shows why. Cross-data-center network loss and a collapsed database connection pool stalled run scheduling. Some in-progress runs stayed in a Running state and never resumed or failed on their own, so failure handlers and parent workflows were never told. Customers had to cancel and replay. Replay starts a run from the beginning, so steps that had already completed, such as charges, emails, database writes, and webhooks, ran again.

Make every step safe to repeat

Put an idempotency key on every side-effecting step, derived from the business event, such as the order and the step name, not a random id generated per attempt. A random id changes on replay, so the downstream service cannot tell a repeat from a new request. Assume an external service can accept an action before the workflow records that it happened. The call succeeds, the run stalls before the result is saved, and any retry or replay calls again. The key is what makes that second call harmless. Add a stuck-run alarm: alert on any run older than its expected duration, per workflow type, from your own data. Do not wait for the vendor's status page. Do not assume failure handlers always fire. A run that never fails never triggers one, so anything that must happen on failure, such as releasing a hold or notifying a customer, also needs a sweep that finds runs with no outcome. Run reconciliation jobs that compare intended outcomes with actual ones: orders against payments, sends against the email log, records against the system they were written to.

Replay narrowly

When the platform recovers, fix and verify first, then replay only the runs that reconciliation shows are incomplete, in small batches, watching for duplicates. A mass replay of everything that looks stuck turns one incident into two.

Sources

  • Public reporting on a hosted workflow incident. Public reporting. October 2026.

Was this useful?

Get in touch

Seeing one of these in your system?

Describe what exists today and where it breaks. We will come back with a technical point of view and a scoped first step.