Skip to content

Commit

Permalink
fix: test
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 7fd58c2 commit 6e5c3f1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
"sync"
"time"

"golang.org/x/exp/slices"

"github.com/argoproj/argo-workflows/v3/util/secrets"

"github.com/argoproj/pkg/humanize"
Expand Down Expand Up @@ -808,8 +806,8 @@ func (woc *wfOperationCtx) persistUpdates(ctx context.Context) {
woc.log.WithError(err).Warn("failed to delete task-results")
}
}
// If FinalizerArtifactGC exists, requeue to make sure artifact GC can execute.
if woc.wf.Status.Fulfilled() && slices.Contains(wf.GetFinalizers(), common.FinalizerArtifactGC) {
// If Finalizer exists, requeue to make sure Finalizer can be removed.
if len(wf.GetFinalizers()) > 0 {
woc.requeue()
}

Expand Down

0 comments on commit 6e5c3f1

Please sign in to comment.