mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-12 23:36:44 +00:00
update
This commit is contained in:
@@ -90,10 +90,10 @@ func fastBestFit(nodes []NodeStatus, tasks []Task) Allocation {
|
||||
}
|
||||
}
|
||||
if best == nil {
|
||||
log.Info(task, " choose ", best.ClientID)
|
||||
allocation.Flags["valid"] = false
|
||||
break
|
||||
} else {
|
||||
log.Info(task, " choose ", best.ClientID)
|
||||
//fmt.Println(task, nodeID, allocation.TasksOnNode, minCost)
|
||||
allocation.TasksOnNode[best.ClientID] = append(allocation.TasksOnNode[best.ClientID], task)
|
||||
eva.add(*best, task)
|
||||
|
||||
Reference in New Issue
Block a user