Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed Mar 25, 2024
1 parent 7f2adc0 commit 3428f06
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/controller/retention/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ func (r *defaultController) TriggerRetentionExec(ctx context.Context, policyID i
if e := r.execMgr.StopAndWaitWithError(ctx, id, 10*time.Second, err); e != nil {
logger.Errorf("failed to stop the retention execution %d: %v", id, e)
}

} else if num == 0 {
// no candidates, mark the execution as done directly
if err := r.execMgr.MarkDone(ctx, id, "no resources for retention"); err != nil {
Expand Down

0 comments on commit 3428f06

Please sign in to comment.