1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-05-04 00:27:02 +08:00
parent 488dfbbb2f
commit d6f6fc01f2
2 changed files with 2 additions and 13 deletions

View File

@@ -740,6 +740,7 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
Memory := 0.0001
start := pool.pools[0].Next
for cur := start; ; {
log.Info(cur.ID)
cur.Lock.Lock()
for _, node := range cur.Nodes {
CPU += float64(node.NumCPU)
@@ -786,7 +787,7 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
}
scheduler.nextQueue = next
scheduler.queueMu.Unlock()
log.Debug("updateNextQueue ->", next)
log.Info("updateNextQueue ->", next)
}
func (scheduler *SchedulerFair) Attach(GPU string, job string) {