Skip to content

Commit

Permalink
fix: Enable the workflow created by a wftmpl to retry after manually …
Browse files Browse the repository at this point in the history
…stopped

Signed-off-by: tongkangheng.tkh <[email protected]>
  • Loading branch information
tongkangheng.tkh committed Jul 14, 2023
1 parent 0021114 commit 50934ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,9 @@ func FormulateRetryWorkflow(ctx context.Context, wf *wfv1.Workflow, restartSucce
newWF.Status.Message = ""
newWF.Status.StartedAt = metav1.Time{Time: time.Now().UTC()}
newWF.Status.FinishedAt = metav1.Time{}
if newWF.Status.StoredWorkflowSpec != nil {
newWF.Status.StoredWorkflowSpec.Shutdown = ""
}
newWF.Spec.Shutdown = ""
newWF.Status.PersistentVolumeClaims = []apiv1.Volume{}
if newWF.Spec.ActiveDeadlineSeconds != nil && *newWF.Spec.ActiveDeadlineSeconds == 0 {
Expand Down

0 comments on commit 50934ef

Please sign in to comment.