Skip to content

Commit

Permalink
Remove redundant assignment to isSchedulable
Browse files Browse the repository at this point in the history
  • Loading branch information
zuqq committed Jun 27, 2023
1 parent cc23cbe commit 0d82d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/scheduler/submitcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,17 @@ func (srv *SubmitChecker) getSchedulingResult(jctxs []*schedulercontext.JobSched
nodeDb := executor.nodeDb
txn := nodeDb.Txn(true)
ok, err := nodeDb.ScheduleManyWithTxn(txn, jctxs)
isSchedulable = isSchedulable || ok
txn.Abort()

isSchedulable = isSchedulable || ok

sb.WriteString(id)
if err != nil {
sb.WriteString(err.Error())
sb.WriteString("\n")
continue
}

isSchedulable = isSchedulable || ok
numSuccessfullyScheduled := 0
for _, jctx := range jctxs {
pctx := jctx.PodSchedulingContext
Expand Down

0 comments on commit 0d82d1f

Please sign in to comment.