Skip to content

Commit 990c403

Browse files
Mennadweomer
Menna
authored andcommitted
add comment
1 parent 294fa10 commit 990c403

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/upgrade/handle_batch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (ctl *Controller) handleJobs(ctx context.Context) error {
9595
}
9696
return obj, enqueueOrDelete(jobs, obj, upgradejob.ConditionComplete)
9797
}
98+
// if the job is hasn't failed or completed but the job Node is not on the applying list, consider it running out-of-turn and delete it
9899
if i := sort.SearchStrings(plan.Status.Applying, nodeName); i == len(plan.Status.Applying) ||
99100
(i < len(plan.Status.Applying) && plan.Status.Applying[i] != nodeName) {
100101
return obj, deleteJob(jobs, obj, metav1.DeletePropagationBackground)

0 commit comments

Comments
 (0)