mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-06 05:51:54 +00:00
update
This commit is contained in:
parent
a117f2b96d
commit
46962fe0f7
@ -146,7 +146,7 @@ func (jm *JobManager) start() {
|
||||
/* monitor job execution */
|
||||
for {
|
||||
//jm.status()
|
||||
if !jm.isRunning {
|
||||
if !jm.isRunning || jm.killFlag {
|
||||
break
|
||||
}
|
||||
time.Sleep(time.Second * 1)
|
||||
|
@ -861,7 +861,7 @@ func (pool *ResourcePool) doAcquireResource(job Job) []NodeStatus {
|
||||
/* third round, find gpu to be released */
|
||||
if len(candidates) == 0 && len(job.Tasks) == 1 && task.NumberGPU == 1 && pool.enablePreSchedule {
|
||||
estimate := InstanceOfOptimizer().PredictTime(job)
|
||||
log.Info(estimate)
|
||||
log.Debug(estimate)
|
||||
|
||||
if loadRatio >= pool.enablePreScheduleRatio {
|
||||
allocationType = 3
|
||||
|
Loading…
Reference in New Issue
Block a user