Add timeoutMs to webhooks calls (#15012)

5 second timeout
tested with an application serverlessFunction that delays
This commit is contained in:
martmull
2025-10-09 15:54:44 +00:00
committed by GitHub
parent 01d40c4f86
commit 660cd38f35
@@ -74,7 +74,10 @@ export class CallWebhookJob {
const response = await this.httpService.axiosRef.post(
getAbsoluteUrl(data.targetUrl),
payloadWithoutSecret,
{ headers },
{
headers,
timeout: 5_000,
},
);
const success = response.status >= 200 && response.status < 300;