Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retryStrategy limit does not have a nil check #8990

Closed
dpadhiar opened this issue Jun 16, 2022 · 0 comments · Fixed by #8991
Closed

retryStrategy limit does not have a nil check #8990

dpadhiar opened this issue Jun 16, 2022 · 0 comments · Fixed by #8991
Assignees
Labels
area/controller Controller issues, panics area/retryStrategy Template-level retryStrategy P3 Low priority type/bug

Comments

@dpadhiar
Copy link
Member

retryStrategy.Limit is a pointer value which maybe be nil. This will because a panic when it is not checked before attempting to use IntVal.

// See if we have waited past the deadline
if time.Now().Before(waitingDeadline) && int32(len(node.Children)) <= retryStrategy.Limit.IntVal {
woc.requeueAfter(timeToWait)
retryMessage := fmt.Sprintf("Backoff for %s", humanize.Duration(timeToWait))
return woc.markNodePhase(node.Name, node.Phase, retryMessage), false, nil
}

@dpadhiar dpadhiar self-assigned this Jun 16, 2022
dpadhiar added a commit to dpadhiar/argo-workflows that referenced this issue Jun 16, 2022
…rgoproj#8990

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
terrytangyuan pushed a commit that referenced this issue Jun 18, 2022
…8990 (#8991)

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
@sarabala1979 sarabala1979 mentioned this issue Jun 20, 2022
55 tasks
sarabala1979 pushed a commit that referenced this issue Jun 20, 2022
…8990 (#8991)

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
juliev0 pushed a commit to juliev0/argo-workflows that referenced this issue Jul 14, 2022
…rgoproj#8990 (argoproj#8991)

Signed-off-by: Dillen Padhiar <dillen_padhiar@intuit.com>
Signed-off-by: Julie Vogelman <julie_vogelman@intuit.com>
@agilgur5 agilgur5 added type/bug area/controller Controller issues, panics area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries P3 Low priority labels Sep 11, 2023
@agilgur5 agilgur5 added area/retryStrategy Template-level retryStrategy and removed area/retry-manual Manual workflow "Retry" Action (API/CLI/UI). See retryStrategy for template-level retries labels Apr 25, 2024
@argoproj argoproj locked as resolved and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/controller Controller issues, panics area/retryStrategy Template-level retryStrategy P3 Low priority type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants