Skip to content

Commit

Permalink
Merge pull request #2630 from wangyang0616/bugfix_preempt_gang
Browse files Browse the repository at this point in the history
fix: deployment and pod, high priority cannot preempt low priority resources
  • Loading branch information
volcano-sh-bot committed Dec 30, 2022
2 parents 1e473e0 + 6e8aca5 commit 6bbd098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scheduler/plugins/gang/gang.go
Expand Up @@ -155,7 +155,7 @@ func (gp *gangPlugin) OnSessionOpen(ssn *framework.Session) {
jobStarvingFn := func(obj interface{}) bool {
ji := obj.(*api.JobInfo)
occupied := ji.WaitingTaskNum() + ji.ReadyTaskNum()
if ji.CheckTaskStarving() && occupied < ji.MinAvailable {
if ji.CheckTaskStarving() || occupied < ji.MinAvailable {
return true
}
return false
Expand Down

0 comments on commit 6bbd098

Please sign in to comment.