Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

Examine all pending tasks in a job #540

Merged
merged 2 commits into from
Jan 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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