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
9dc1237bd2
commit
dade0ab56e
@ -551,7 +551,8 @@ func (scheduler *SchedulerFair) UpdateQuota() {
|
|||||||
request.NumberGPU += GPU
|
request.NumberGPU += GPU
|
||||||
request.CPU += CPU
|
request.CPU += CPU
|
||||||
request.Memory += Memory
|
request.Memory += Memory
|
||||||
if job.Priority == jobs[0].Priority {
|
/* increase priority at most 10 jobs, to avoid small jobs always goes first in a batch */
|
||||||
|
if job.Priority == jobs[0].Priority && i < 10 {
|
||||||
scheduler.queues[queue][i].BasePriority += 1.0
|
scheduler.queues[queue][i].BasePriority += 1.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user