We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74ebf43 commit 1d7edf9Copy full SHA for 1d7edf9
pkg/scheduler/scheduler.go
@@ -43,6 +43,7 @@ func SchedulerReady(cfg *types.SchedulerConfig, ssClient *scoreserver.Client, vm
43
func InitSchedulerInfo(cfg *types.SchedulerConfig, lg *zap.Logger) (map[string]*types.ProblemInstance, []types.ZonePriority) {
44
lg.Info("Scheduler: Init SchedulerInfo")
45
var pis map[string]*types.ProblemInstance
46
+ pis = map[string]*types.ProblemInstance{}
47
//Init pis
48
for _, p := range cfg.Setting.Problems {
49
pis[p.Name] = &types.ProblemInstance{MachineImageName: "", ProblemID: "", NotReady: 0, Ready: 0, UnderChallenge: 0, UnderScoring: 0, Abandoned: 0, KeepPool: p.KeepPool, KIS: []types.KeepInstance{}, CurrentInstance: 0, DefaultInstance: p.DefaultInstance}
0 commit comments