1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00

update GA

This commit is contained in:
2020-05-27 18:04:05 +08:00
parent bbc8ad2317
commit d35e0a57d6
9 changed files with 402 additions and 371 deletions

View File

@@ -821,7 +821,7 @@ func (pool *ResourcePool) acquireResource(job Job) []NodeStatus {
}
}
allocation := fastBestFit(nodesT, tasks)
allocation := InstanceOfAllocator().allocate(nodesT, tasks)
if allocation.Flags["valid"] {
for range job.Tasks { //append would cause uncertain order
@@ -897,8 +897,8 @@ func (pool *ResourcePool) releaseResource(job Job, agent NodeStatus) {
defer seg.Lock.Unlock()
node, ok := seg.Nodes[agent.ClientID]
/* in case node is offline */
if !ok {
/* in case node is offline */
/* TODO, update usingTotalGPU correctly */
return
}