1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36: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 {
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)