Skip to content

Commit

Permalink
Fix retry workflow state (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki authored and sarabala1979 committed Oct 1, 2019
1 parent 2f0af52 commit 5d530be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,13 @@ func RetryWorkflow(kubeClient kubernetes.Interface, wfClient v1alpha1.WorkflowIn
if err != nil && !apierr.IsNotFound(err) {
return nil, errors.InternalWrapError(err)
}
} else if node.Name == wf.ObjectMeta.Name {
newNode := node.DeepCopy()
newNode.Phase = wfv1.NodeRunning
newNode.Message = ""
newNode.FinishedAt = metav1.Time{}
newWF.Status.Nodes[newNode.ID] = *newNode
continue
}
}

Expand Down

0 comments on commit 5d530be

Please sign in to comment.