1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 16:16:44 +00:00
This commit is contained in:
2020-05-26 20:54:48 +08:00
parent 2576576ebe
commit 41945726f1

View File

@@ -90,10 +90,10 @@ func fastBestFit(nodes []NodeStatus, tasks []Task) Allocation {
} }
} }
if best == nil { if best == nil {
log.Info(task, " choose ", best.ClientID)
allocation.Flags["valid"] = false allocation.Flags["valid"] = false
break break
} else { } else {
log.Info(task, " choose ", best.ClientID)
//fmt.Println(task, nodeID, allocation.TasksOnNode, minCost) //fmt.Println(task, nodeID, allocation.TasksOnNode, minCost)
allocation.TasksOnNode[best.ClientID] = append(allocation.TasksOnNode[best.ClientID], task) allocation.TasksOnNode[best.ClientID] = append(allocation.TasksOnNode[best.ClientID], task)
eva.add(*best, task) eva.add(*best, task)