Skip to content

Commit

Permalink
fix: Reset workflow started time to current when retrying workflow. F…
Browse files Browse the repository at this point in the history
…ixes #5796 (#5798)

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored and sarabala1979 committed May 5, 2021
1 parent e67cb42 commit 0d3ad80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ func retryWorkflow(ctx context.Context, kubeClient kubernetes.Interface, hydrato
newWF.Status.Phase = wfv1.WorkflowRunning
newWF.Status.Nodes = make(wfv1.Nodes)
newWF.Status.Message = ""
newWF.Status.StartedAt = metav1.Time{Time: time.Now().UTC()}
newWF.Status.FinishedAt = metav1.Time{}
newWF.Spec.Shutdown = ""
if newWF.Spec.ActiveDeadlineSeconds != nil && *newWF.Spec.ActiveDeadlineSeconds == 0 {
Expand Down

0 comments on commit 0d3ad80

Please sign in to comment.