RESOURCES / DECISIONS AND DELIVERY

Recover a webhook workflow after partial failure

A webhook can arrive successfully while the business operation remains incomplete. Recovery needs to distinguish message authenticity, accepted work and confirmed effects in downstream systems.

Separate receipt from completion

Consider a fictional workflow that receives an event, creates a case and attaches a document. A failure in the last step does not undo the case creation. Replaying every step may create a second case.

Provider-specific delivery verification, such as Shopify’s documented webhook checks, establishes a message’s provenance. It does not prove that the downstream business operation completed.

Record the information needed for a safe decision

RecordPurpose
Delivery identityRecognise another delivery of the same event where supported
Business identityFind the intended case across attempts
Confirmed effectsAvoid repeating a completed action
Pending stepResume from a known boundary
Failure categorySeparate retryable interruption from invalid data
Reconciliation resultVerify the final state independently of the notification

Test failure after the first irreversible effect

Use synthetic events and interrupt the workflow after case creation. Resume it and inspect the destination: one case, the intended document and an explicit completion state. Also test the same event arriving again after success.

HTTP semantics alone cannot make an arbitrary business action safe to repeat. Define deduplication and recovery for the actual destination. If the effect cannot be queried or protected, hold the operation for review instead of automatically retrying an ambiguous action.

Bound retries and preserve an ambiguous state

If the destination created the fictional case but the response was lost, query it using a stable business reference where the API supports that operation. If the effect cannot be established, stop automatic replay and assign the item for review. Treat unknown completion as its own state rather than calling it a failure with no effect.

The recovery policy should name the retry limit, who handles exhausted attempts and what evidence closes the item. Test a duplicate arriving after success and two attempts competing for the same work. A delivery identifier is useful evidence, but preventing repeated effects still requires an implementation appropriate to the destination.

Sources and scope of references

LET’S TAKE THE NEXT STEP

Discuss this requirement

Describe the event, the first downstream effect and how you can verify whether that effect already happened.

Scope and a quotation are defined after reviewing your request. No resolution deadline or commercial outcome is guaranteed.

Your request: Recover a webhook workflow after partial failure

Describe the event, the first downstream effect and how you can verify whether that effect already happened.

Context, timing and optional budget: share only what you already know.

Do not send passwords or customer data. Your contact details are used to reply to this request. Privacy

↑

Confidentialité et détails du traitement