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

DAG doesn't consider retryStrategy.backoff.maxDuration when determining if a Retry node has exhausted its retries #2975

Closed
simster7 opened this issue May 7, 2020 · 0 comments · Fixed by #3035
Assignees
Labels

Comments

@simster7
Copy link
Member

simster7 commented May 7, 2020

If a Retry node is not complete on a DAG, assessDAGPhase considers if the node has more retries available. If it does, it allows the DAG to continue Running.

https://github.com/argoproj/argo/blob/3c4422326dceea456df94a71270df80e9cbf7177/workflow/controller/dag.go#L141-L145

However, hasMoreRetries does not consider retryStrategy.backoff.maxDuration in this assessment:

https://github.com/argoproj/argo/blob/3c4422326dceea456df94a71270df80e9cbf7177/workflow/controller/dag.go#L225-L227

This can dead-lock the controller:

  1. A retry node exhausts its maxDuration (but not its limit). This prevents new nodes from being created.
  2. Operator arrives at assessDAGPhase. Since limit hasn't been exceeded, the DAG (and therefore the Workflow) is marked as running.
  3. Workflow remains running, back to step 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant