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

fix: always fail dag when shutdown is enabled. Fixes #11452 #11493

Merged
merged 8 commits into from
Aug 11, 2023

Conversation

isubasinghe
Copy link
Member

Fixes #11452

Motivation

Ensure that stopped workflows are always marked as Failed (as expected).

Modifications

When shutdown is enabled, we don't do the DAG exploration.

Verification

Manually tested

Signed-off-by: isubasinghe <isitha@pipekit.io>
@isubasinghe
Copy link
Member Author

isubasinghe commented Aug 1, 2023

Blocked by: #11451

@isubasinghe isubasinghe marked this pull request as ready for review August 1, 2023 13:51
@isubasinghe isubasinghe force-pushed the upstream-stop-on-shutdown branch from 4c2e3ea to 2c63eb0 Compare August 1, 2023 13:57
Signed-off-by: isubasinghe <isitha@pipekit.io>
@isubasinghe isubasinghe force-pushed the upstream-stop-on-shutdown branch from 6211bc0 to 825c7bf Compare August 2, 2023 10:05
Signed-off-by: isubasinghe <isitha@pipekit.io>
@isubasinghe isubasinghe requested a review from Joibel August 2, 2023 10:06
Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me

Copy link

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. just adds an early return and error guards

@@ -140,15 +146,24 @@ func (d *dagContext) assessDAGPhase(targetTasks []string, nodes wfv1.Nodes) wfv1
targetTaskPhases[d.taskNodeID(task)] = ""
}

boundaryNode, err := nodes.Get(d.boundaryID)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for context for other readers, the nodes.Get modifications here are just error guards a la #11451. no real semantic changes

Signed-off-by: Yuan (Terry) Tang <terrytangyuan@gmail.com>
@terrytangyuan terrytangyuan enabled auto-merge (squash) August 10, 2023 19:53
@terrytangyuan terrytangyuan merged commit 105031b into argoproj:master Aug 11, 2023
terrytangyuan added a commit that referenced this pull request Aug 11, 2023
Signed-off-by: isubasinghe <isitha@pipekit.io>
Signed-off-by: Yuan (Terry) Tang <terrytangyuan@gmail.com>
Co-authored-by: Yuan (Terry) Tang <terrytangyuan@gmail.com>
@agilgur5 agilgur5 added the area/shutdown Shutdown Strategy: Stop and Terminate label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/shutdown Shutdown Strategy: Stop and Terminate area/templates/dag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed workflows can never be diagnosed as failed sometimes, meaning it is impossble to stop
4 participants