From 9405642586f81f6dd544d5873b794bc73eb06bf9 Mon Sep 17 00:00:00 2001 From: neelimamanubolu Date: Tue, 11 Jun 2019 12:46:40 +0000 Subject: [PATCH] fix(Orca): Feature: option to add a delay before polling starts in Webhook stage #3450 --- .../spinnaker/orca/webhook/tasks/CreateWebhookTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/CreateWebhookTask.groovy b/orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/CreateWebhookTask.groovy index e969e979a7..8d4f7eb9a1 100644 --- a/orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/CreateWebhookTask.groovy +++ b/orca-webhook/src/main/groovy/com/netflix/spinnaker/orca/webhook/tasks/CreateWebhookTask.groovy @@ -101,7 +101,7 @@ class CreateWebhookTask implements RetryableTask { return TaskResult.builder(ExecutionStatus.TERMINAL).context(outputs).build() } - if (statusCode.is5xxServerError() || statusCode.value() == 429) { + if (statusCode.is5xxServerError() || statusCode.value() == 429 || statusCode.value() == 404) { String errorMessage = "error submitting webhook for pipeline ${stage.execution.id} to ${stageData.url}, will retry." log.warn(errorMessage, e)