Rendi provides webhooks to notify you when FFmpeg command processing is completed, whether successful or failed. This eliminates the need for continuous polling and allows your application to react to processing events asynchronously.
When the command processing is complete, Rendi will send a POST request to your webhook URL.
The payload will have a data field which will be identical to what you would receive from the polling endpoint - containing the complete status of the command execution,
and a timestamp of when the webhook was sent - unix epoch time in milliseconds.
Each message is attempted based on the following schedule, where each period is started following the failure of the preceding attempt:
Immediately
5 seconds
5 minutes
30 minutes
2 hours
5 hours
10 hours
10 hours (in addition to the previous)
For example, an attempt that fails three times before eventually succeeding will be delivered roughly 35 minutes and 5 seconds following the first attempt.After all retry attempts are exhausted, the webhook delivery will be marked as failed, and you will need to use the polling endpoint to retrieve the command status.
Your webhook endpoint should respond within 15 seconds. If it takes longer, Rendi will consider the delivery attempt failed and will retry according to the retry policy.