mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user