From 533414b065bcc2b50d5b6eb72c8c87550218fc58 Mon Sep 17 00:00:00 2001 From: Ang Gao Date: Fri, 28 Aug 2020 19:41:15 +0100 Subject: [PATCH] fix per comments from Alex --- util/retry/retry.go | 8 -------- workflow/executor/executor.go | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/util/retry/retry.go b/util/retry/retry.go index 6ec0a04aa354..f46b1a97ef4c 100644 --- a/util/retry/retry.go +++ b/util/retry/retry.go @@ -20,14 +20,6 @@ var DefaultRetry = wait.Backoff{ Jitter: 0.1, } -// ExecutorRetry is a retry backoff settings for WorkflowExecutor -var ExecutorRetry = wait.Backoff{ - Steps: 8, - Duration: 1 * time.Second, - Factor: 1.0, - Jitter: 0.1, -} - // IsRetryableKubeAPIError returns if the error is a retryable kubernetes error func IsRetryableKubeAPIError(err error) bool { // get original error if it was wrapped diff --git a/workflow/executor/executor.go b/workflow/executor/executor.go index 54bc68baacc1..ce3d5b32abee 100644 --- a/workflow/executor/executor.go +++ b/workflow/executor/executor.go @@ -45,6 +45,14 @@ const ( tempOutArtDir = "/tmp/argo/outputs/artifacts" ) +// ExecutorRetry is a retry backoff settings for WorkflowExecutor +var ExecutorRetry = wait.Backoff{ + Steps: 8, + Duration: 1 * time.Second, + Factor: 1.0, + Jitter: 0.1, +} + // WorkflowExecutor is program which runs as the init/wait container type WorkflowExecutor struct { PodName string