From 31684d62e3c8701bedb4d9dff0d2e7911e419449 Mon Sep 17 00:00:00 2001 From: Gerrit Date: Tue, 10 Nov 2020 17:04:59 +0100 Subject: [PATCH] Increase handle timeout. (#31) --- pkg/webhooks/constants/constants.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/webhooks/constants/constants.go b/pkg/webhooks/constants/constants.go index 42667ab..9db968b 100644 --- a/pkg/webhooks/constants/constants.go +++ b/pkg/webhooks/constants/constants.go @@ -4,5 +4,7 @@ import "time" const ( // WebhookHandleTimeout is the duration after which a webhook handle function context times out - WebhookHandleTimeout = 10 * time.Second + // the entire thing is asynchronuous anyway, so the VCS will get an immediate response, this is just + // that we do not have processing of events hanging internally + WebhookHandleTimeout = 60 * time.Second )