Skip to content

Why did my app deliver the same generated file twice after Replicate retried a completed webhook?

A completed webhook can be delivered again after a timeout or error response. Save the outcome and the delivery marker durably under the prediction and grant before telling the provider the event was accepted.

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Check the uncertain boundary

Find whether your first handler stored the file or notified the user before its response failed. Distinguish repeated delivery processing from a distinct prediction.

Make reprocessing safe

Resume a missing local action while suppressing an already recorded one, including notification. Test both a repeated callback and an interruption before acknowledgment.

Example

The first request can save the media and time out just before returning success. The retried request should discover that stored state.

Pass condition

Replaying the same completed message twice creates one customer delivery and one record of the files.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation