Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#540 from Jeffwan/examine_all_tasks
Browse files Browse the repository at this point in the history
Examine all pending tasks in a job
  • Loading branch information
k8s-ci-robot authored Jan 7, 2019
2 parents 67cdb66 + adbbfdc commit d856cdc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/scheduler/actions/allocate/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ func (alloc *allocateAction) Execute(ssn *framework.Session) {

if assigned {
jobs.Push(job)
// Handle one assigned task in each loop.
break
}

// Handle one pending task in each loop.
break
// If current task is not assgined, try to fit all rest tasks.
}

// Added Queue back until no job in Queue.
Expand Down

0 comments on commit d856cdc

Please sign in to comment.