1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00

add debug

This commit is contained in:
2019-10-24 13:31:03 +08:00
parent d892da43f7
commit 005a7400b2
2 changed files with 6 additions and 0 deletions

View File

@@ -169,6 +169,7 @@ func (jm *JobManager) status() MsgJobStatus {
var res MsgTaskStatus
err = json.Unmarshal([]byte(string(body)), &res)
log.Info(res)
if err != nil {
continue
}

View File

@@ -353,6 +353,11 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
tmp += float64(v.NumberGPU) / NumberGPU
tmp += float64(v.MemoryGPU) / MemoryGPU
tmp /= 4
weight := 10
if g, ok2 := InstanceOfGroupManager().groups[k]; !ok2 {
weight = g.Weight
}
tmp /= float64(weight)
if tmp < quota {
quota = tmp
next = k