Retry Logic and Webhook Logs
Retry Logic
Webhook requests may encounter failure due to network or destination server issues. In such cases, Alloy employs an automatic retry mechanism. Initially, retries are scheduled at intervals of 1 second, 1 minute, and 10 minutes after the initial failure. Subsequently, retries continue on an exponential backoff for a duration of 24 hours from the time of the first failure.
Attempt Number | Interval | Total Time Elapsed |
---|---|---|
1 | 0 seconds | 0 seconds |
2 | 1 second | 1 second |
3 | 1 minute | 1 minute |
4 | 9 minutes | 10 minutes |
5 | 20 minutes | 30 minutes |
6 | 60 minutes | 90 minutes |
7 | 90 minutes | 3 hours |
8 | 3 hours | 6 hours |
9 | 6 hours | 12 hours |
10 | 12 hours | 24 hours |
It's important to note that new webhook events take priority over retrying failed events. Consequently, during peak traffic hours, the retry schedule may experience delays.
What if webhooks are failing?
If your webhooks fail to deliver 100 times continuously in a 72 hour period, it will be disabled automatically. You can re-enable it by setting to active in your webhook settings.
Webhook Logs
You can view a real-time log of all webhook attempts, both successful and failed, in the settings section of your Alloy dashboard.
Each log shows the following details
- Time - The timestamp Alloy made the request to the client's webhook server
- Name - The name set when creating the webhook
- Event - Webhook event type that triggered the webhook request
- Attempt - The number of retries Alloy has attempted. You can click into each specific retry in it's own log
- Endpoint - Webhook URL the request was sent to
- Response - HTTP Response Code returned when making the request
- Exception (if applicable) - Error message if something goes wrong
- Payload Content - Click on a specific log to see more details, including all previous attempts for a webhook
See this help article for more information on Alloy's webhook logs.
Updated 2 months ago