Skip to content

Commit

Permalink
fix: finalizers.
Browse files Browse the repository at this point in the history
Signed-off-by: shuangkun <[email protected]>
  • Loading branch information
shuangkun committed Mar 31, 2024
1 parent 6e5c3f1 commit a8077e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ func (woc *wfOperationCtx) persistUpdates(ctx context.Context) {
}
}
// If Finalizer exists, requeue to make sure Finalizer can be removed.
if len(wf.GetFinalizers()) > 0 {
if woc.wf.Status.Fulfilled() && len(wf.GetFinalizers()) > 0 {
woc.requeue()
}

Expand Down

0 comments on commit a8077e5

Please sign in to comment.