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:53:43 +08:00
parent ec30e79c81
commit 2576576ebe

View File

@@ -89,8 +89,8 @@ func fastBestFit(nodes []NodeStatus, tasks []Task) Allocation {
best = &nodes[i]
}
}
log.Info(task, " choose ", best.ClientID)
if best == nil {
log.Info(task, " choose ", best.ClientID)
allocation.Flags["valid"] = false
break
} else {