mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 22:31:55 +00:00
update
This commit is contained in:
parent
d8e5d36311
commit
3405fb8262
@ -241,6 +241,17 @@ func (allocator *Allocator) GA(nodes []NodeStatus, tasks []Task, useBestFit bool
|
|||||||
}
|
}
|
||||||
//fmt.Println(evaluatue(allocation))
|
//fmt.Println(evaluatue(allocation))
|
||||||
//fmt.Println(allocation)
|
//fmt.Println(allocation)
|
||||||
|
|
||||||
|
cnt := 0
|
||||||
|
for _, tasks := range allocation.TasksOnNode {
|
||||||
|
for range tasks {
|
||||||
|
cnt++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if cnt != len(allocation.Tasks) && allocation.Flags["valid"] {
|
||||||
|
log.Warn("1:", cnt, len(allocation.Tasks))
|
||||||
|
}
|
||||||
|
|
||||||
return allocation
|
return allocation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user