mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-16 00:26:43 +00:00
consider bw when allocatig, enable preempt switcher
This commit is contained in:
@@ -17,7 +17,7 @@ type SchedulerPriority struct {
|
||||
schedulingJobs map[string]bool
|
||||
schedulingMu sync.Mutex
|
||||
|
||||
jobMasters map[string]*JobManager
|
||||
jobMasters map[string]*JobManager
|
||||
enabled bool
|
||||
parallelism int
|
||||
}
|
||||
@@ -68,7 +68,7 @@ func (scheduler *SchedulerPriority) Start() {
|
||||
go func() {
|
||||
jm.start()
|
||||
}()
|
||||
} else {
|
||||
} else if InstanceOfConfiguration().PreemptEnabled {
|
||||
/* start preempt */
|
||||
var jobs []Job
|
||||
preemptee := scheduler.queue[0]
|
||||
|
||||
Reference in New Issue
Block a user