Skip to content

Commit

Permalink
fix per comments from Alex
Browse files Browse the repository at this point in the history
  • Loading branch information
Ang Gao authored and anggao committed Aug 28, 2020
1 parent f4d3ea0 commit 533414b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 0 additions & 8 deletions util/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions workflow/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 533414b

Please sign in to comment.