Menu
Start a project

Noom’s desk / Working note

When a workflow fails halfway

Find the last confirmed action before pressing retry.

Zero Foundry

A blue Foundry figure examines a paper strip beside a red signal light.

A timeout is an unanswered question

The receiving system may have completed an action even though the sender never received confirmation. Retrying blindly can create a duplicate. Preserve a stable identifier and check the destination before deciding what to repeat.

Stripe documents idempotency keys for requests that create or update objects. Reusing the key lets the service recognize a retry. Its API versions differ in how failed results behave, so implementation needs the rules for the actual endpoint. The general lesson is to make repeat handling explicit.

Separate temporary from permanent failure

A brief network interruption may justify a bounded retry. A revoked permission or missing required field needs a change, not repeated attempts. Cloudflare Workflows documents configurable retry limits, delays and timeouts, plus a way to stop on a non-retryable error.

Choose the policy for each step. Record the attempt and the outcome. When the limit is reached, notify the operating owner with enough context to investigate, without exposing sensitive input in a casual notification.

Recover from the confirmed state

List which steps succeeded and which remain uncertain. Resume only the work that is safe to repeat. If a prior action must be undone, define the compensating action and its own failure path. A refund, cancellation or correction may require approval.

Test failure with prepared examples before relying on the process. Disconnect a harmless test destination, remove a required field and repeat a test event. Check that the owner can find the original item and understand what happened. A silent queue is not a recovery plan.

On the desk / local exercise

Investigate the failed handoff

SourceCheckDecision
Choose a case to inspect

Record the existing result. Do not create a second item merely because the sender timed out.

This exercise runs only on this page. It sends nothing and does not save your entries. The cases illustrate decisions, not measured client results.

Retry behavior: Cloudflare: Sleeping and retrying.