A timeout is not a business result
A customer request reaches your automation, which asks an operations system to create a work order. The system saves it, but the response is lost. Your automation sees a timeout and starts again. Without safeguards, one request can produce two jobs for the team.
AWS's guidance on timeouts explains that a failed or timed-out call does not necessarily mean its effects have not happened. In an older deepsense.ai article on enterprise workflows, duplicate actions and recovery after interruption are also treated as operational correctness problems.
For a small business, the practical question is simple: can the team establish whether this particular action happened? An AI assistant's confident explanation cannot replace that evidence. Keep retry decisions in the integration's controlled workflow.
Separate the operation from its attempts
Define the intended action precisely: create the work order for an approved request, for example. Assign it an operation ID before the first submission. Save the destination, relevant account, intended inputs and current state in a durable record that survives restarts.
Give each network attempt its own identifier while retaining the same operation ID. This lets the team distinguish “try this action again” from “the customer requested another job”. Do not generate a new business operation merely because a worker restarted or a manager clicked retry.
AWS describes caller-provided identifiers as a way to express repeated intent. For your implementation, prevent two workers from independently claiming the same operation. However, a local lock or database record cannot by itself prevent the remote system from performing an action twice.
Check the destination's idempotency contract
Idempotency means repeating an operation has no additional effect beyond the first application. Where an API supports it, use the documented mechanism and understand its limits: which operation and account it covers, how inputs are compared, and how long duplicate protection lasts.
For example, Stripe's API v1 documentation describes returning the saved result for a repeated key and rejecting inconsistent parameters. It also explains that a key reused after its stored record is removed can start a new request. That is a specific API contract, not a permanent guarantee for every integration.
Store the agreed request with its key. If the business intent changes, treat that as a reviewed change, not an excuse to reuse a key for different inputs. If the destination offers no suitable protection or reliable way to establish the outcome, keep uncertain actions for manual reconciliation.
Choose a response to the actual failure
Use a small decision table agreed with whoever owns the destination system. The following is a recommended operating policy, not a replacement for the provider's error documentation.
| Observation | Next step | What to avoid |
|---|---|---|
| Confirmed success and destination ID | Record completion and continue | Creating the action again |
| Timeout or lost connection | Reconcile the outcome or use a documented safe retry | Assuming nothing happened |
| Invalid input or missing permission | Correct the underlying issue and review the request | Repeating unchanged requests indefinitely |
| Documented transient failure or throttling | Retry within limits if the action is safe to repeat | Immediate retries from every layer |
| Duplicate event delivery | Check its stored processing state | Starting a second business operation |
| Protection expired or result still unknown | Assign reconciliation to a person | Using a new key simply to force progress |
Handle webhook receipts separately from business actions
A webhook is a notification sent by another system. Receiving it twice does not necessarily mean the underlying event happened twice. Stripe documents duplicate deliveries, possible duplicates across separate Event objects and delivery without guaranteed ordering. Read the rules for your own event source.
Record the authenticated event and its processing state durably. Distinguish received, queued, processing, completed and unresolved. If a duplicate arrives while work is unfinished, resume or inspect the existing operation; simply discarding every previously seen event can lose work after a crash.
GitHub's webhook guidance provides another concrete example: requested redelivery keeps the same delivery identifier. It also discusses validating deliveries and processing them asynchronously. In your own design, acknowledge durable receipt promptly, then process the work through a recoverable queue. Receipt is not completion.
Map the event to the intended action explicitly. Several legitimate status updates may refer to the same order, so “we have seen this order ID” is not enough to classify every later notification as a duplicate. Keep event identity, operation identity and the destination record distinct.
Limit retries rather than multiplying them
Agree a maximum number of attempts and a maximum elapsed time for each operation. Use increasing delays with random variation, known as backoff with jitter, where appropriate. Check whether your connector, SDK, queue and workflow engine already retry: stacked policies can create more attempts than expected.
AWS's retry documentation distinguishes transient and throttling failures from errors such as invalid requests. Actual behaviour depends on the SDK and configuration. Do not copy a retry count from an unrelated service or assume every server error is safe to repeat.
When the limit is reached, preserve the operation and notify its owner. An alert saying “something failed” is less useful than the operation ID, intended action, last response, attempts made and evidence still needed.
Reconcile uncertain outcomes before reopening work
Check the destination using an available request reference or recorded object ID. Compare the result with the intended inputs and current business state. Allow for the destination's documented visibility delays; an empty search immediately after a timeout is not always proof of absence.
Record the conclusion: completed, definitely rejected, or still unknown. Keep a decision trail when a person authorises the next step. If a workflow includes several external actions, reconcile each one separately. A local transaction does not make changes across several services happen atomically.
A hypothetical service-company example
Imagine a maintenance business whose approved website request creates a work order. The integration records the operation ID and submits the request through a destination API that supports an appropriate idempotency key. The response times out.
The operation becomes unresolved, not failed. A repeated website notification finds the existing operation and does not create a new one. The worker checks the destination and, within that API's valid retry contract, reuses the original key. Once it obtains the saved work order reference, it records completion.
If the key has expired and the outcome cannot be established, the coordinator reviews the case before another submission. This is a fictional workflow, not a client result or a claim that all work-order systems support these features.
Frequently asked questions
Is this the same as removing duplicate CRM contacts?
No. CRM deduplication identifies records for the same person or company. This guide controls repeated execution of one intended action. Both may be needed, but merging contacts does not prevent an integration creating a second job.
Can a new idempotency key fix a failed request?
A new key may make the destination treat it as a new operation. First establish the previous outcome and follow the API's rules. Use a new business operation only when that is the intended, authorised action.
Should every error trigger an automatic retry?
No. Classify the error, establish whether repeating the action is safe and respect the configured limits. Invalid inputs, missing access and uncertain effects often need correction or review before another attempt.
What should we test before launch?
Test a lost response after success, duplicate deliveries, concurrent workers, an expired key and a crash between receipt and processing. Check that the team can find and resolve every unfinished operation. Our acceptance testing guide helps structure these checks.
Sources and next steps
Checked on 30 November 2026: deepsense.ai workflow lessons; AWS on timeouts and backoff, idempotent APIs and retry behaviour; Stripe on idempotent requests and webhooks; GitHub webhook practices.
By ValidVibe Team. For the separate record-matching problem, see our CRM duplicate prevention guide. Explore our automation services or discuss a workflow whose retries need a clearer recovery process.
