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