I have been working on a Bitbucket Cloud application, and have some questions about webhooks, even after reading though the webhook management documentation,
The documentation says that 500 responses result in a retry, which I confirmed though some tests., however all the retries appear to happen instantly after the 500 response.
Is there some way to introduce a delay for the webhook? The issue I am facing is how to to perform a deployment were I will need to shut down my service cleanly, flush all processes dealing with existing calls and then start again. During this time I would love to respond back to Bitbucket setting a delay.
Failing this the other option I can see would be to request webhooks to be replayed from a point in time, or have some other way of getting them. I was unable to find any documentation on this.