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.
- Related: making webhook retries safe to repeat
- Related: catching a data feed that has quietly gone stale
- Related: running a schema migration without taking production down
- How we work: scope, prototype, ship, run
- Running critical work on a workflow platform? Start a conversation
Sources
- Public reporting on a hosted workflow incident. Public reporting. October 2026.
Was this useful?
Related notes
Integrations3 min read
How do you keep a backfill or resync from tripping a vendor's API rate limit and breaking normal syncs?
Budget part of a vendor's API rate limit for a backfill, back off on 429s, and keep the live sync on its own queue.
- Rate limits
- Monitoring
- Workflows
Product engineering4 min read
How do you stop a mobile update after some phones already installed it?
Google halted Authenticator 5.2.2 after it crashed on iOS 27. Pause the rollout, and ship the fix as a new version phones can install.
- Rollouts
- Resilience
- Monitoring
Payments3 min read
What should checkout do when one payment method fails and the processor is still up?
Stripe and Mollie reported Apple Pay, MobilePay, and one iDEAL bank failing in November 2026. Hide that method and retry the same payment.
- Checkout
- Retail
- Resilience
- Monitoring