Skip to content

Commit

Permalink
Fixes #10003: retries force exit handlers (#10159)
Browse files Browse the repository at this point in the history
Signed-off-by: pquadri <pquadri10@gmail.com>
Co-authored-by: Saravanan Balasubramanian <33908564+sarabala1979@users.noreply.github.com>
  • Loading branch information
pquadri and sarabala1979 committed Feb 1, 2023
1 parent 6858c51 commit f48717c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/util/util.go
Expand Up @@ -856,7 +856,7 @@ func FormulateRetryWorkflow(ctx context.Context, wf *wfv1.Workflow, restartSucce
}
switch node.Phase {
case wfv1.NodeSucceeded, wfv1.NodeSkipped:
if strings.HasSuffix(node.Name, onExitNodeName) || doForceResetNode {
if strings.HasPrefix(node.Name, onExitNodeName) || doForceResetNode {
log.Debugf("Force reset for node: %s", node.Name)
// Reset parent node if this node is a step/task group or DAG.
if isGroupNode(node) && node.BoundaryID != "" {
Expand Down

0 comments on commit f48717c

Please sign in to comment.