Skip to content

Commit

Permalink
Merge pull request #843 from k82cn/vc_838
Browse files Browse the repository at this point in the history
Skipped task if no candidate nodes.
  • Loading branch information
volcano-sh-bot authored Jun 7, 2020
2 parents f71623e + 81329f0 commit f115861
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/scheduler/actions/allocate/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ func (alloc *Action) Execute(ssn *framework.Session) {
}
}

// If not candidate nodes for this task, skip it.
if len(candidateNodes) == 0 {
continue
}

nodeScores := util.PrioritizeNodes(task, candidateNodes, ssn.BatchNodeOrderFn, ssn.NodeOrderMapFn, ssn.NodeOrderReduceFn)

node := ssn.BestNodeFn(task, nodeScores)
Expand Down

0 comments on commit f115861

Please sign in to comment.