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