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 d9c5c27 commit 32ad5bbCopy full SHA for 32ad5bb
cmd/epp/runner/runner.go
@@ -18,6 +18,7 @@ package runner
18
19
import (
20
"context"
21
+ "errors"
22
"flag"
23
"fmt"
24
"net/http/pprof"
@@ -282,6 +283,11 @@ func (r *Runner) Run(ctx context.Context) error {
282
283
}
284
285
// --- Initialize Core EPP Components ---
286
+ if r.schedulerConfig == nil {
287
+ err := errors.New("scheduler config must be set either by config api or through code")
288
+ setupLog.Error(err, "failed to create scheduler")
289
+ return err
290
+ }
291
scheduler := scheduling.NewSchedulerWithConfig(r.schedulerConfig)
292
293
saturationDetector := saturationdetector.NewDetector(sdConfig, datastore, setupLog)
0 commit comments