1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +00:00
This commit is contained in:
Newnius 2020-07-02 21:07:42 +08:00
parent a117f2b96d
commit 46962fe0f7
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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