mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -309,6 +309,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
|
|||||||
if valid2 {
|
if valid2 {
|
||||||
t := s
|
t := s
|
||||||
now := (int)(time.Now().Unix())
|
now := (int)(time.Now().Unix())
|
||||||
|
log.Info(t, now, estimate, est)
|
||||||
if now-t > est.Total-est.Post-estimate.Pre && status.MemoryFree > task.MemoryGPU {
|
if now-t > est.Total-est.Post-estimate.Pre && status.MemoryFree > task.MemoryGPU {
|
||||||
available = append(available, status)
|
available = append(available, status)
|
||||||
}
|
}
|
||||||
@@ -362,9 +363,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for i := range locks {
|
for i := range locks {
|
||||||
pool.poolsMu[i].Unlock()
|
pool.poolsMu[i].Unlock()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user