-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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(controller): step group stuck on running when exit hook has illegal expression #14032
Conversation
workflow/controller/steps.go
Outdated
if err != nil { | ||
return node, err | ||
} | ||
if hasOnExitNode && (onExitNode == nil || !onExitNode.Fulfilled()) { | ||
// The onExit node is either not complete or has errored out, return. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be best to update the explanation in the comments as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
I ran the example from #14031 and found that node |
7851bd2
to
a94ea8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
argo-workflows/workflow/controller/steps.go
Lines 110 to 113 in 27a5938
sgNode, err := woc.executeStepGroup(ctx, stepGroup.Steps, sgNodeName, &stepsCtx) | |
if err != nil { | |
return nil, err | |
} |
I think there is also need to mark sgNode
as Error
as I commented before: #14032 (comment).
if err != nil {
return woc.markNodeError(sgNodeName, err), nil
}
…id expression Signed-off-by: joey <[email protected]>
a94ea8f
to
0fecf9e
Compare
thanks @jswxstw , done |
Fixes #14031
Motivation
The error handling logic for
stepGroup
onexithook
with illegal expressions should be consistent withDag
.argo-workflows/workflow/controller/dag.go
Lines 289 to 300 in 27a5938
Modifications