We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5987c commit 6a0e175Copy full SHA for 6a0e175
cmd/kar-controllers/app/server.go
@@ -68,10 +68,6 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
68
AgentConfigs: strings.Split(opt.AgentConfigs, ","),
69
}
70
71
- jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
72
- if jobctrl == nil {
73
- return fmt.Errorf("failed to create a job controller")
74
- }
75
76
g, gCtx := errgroup.WithContext(ctx)
77
@@ -86,8 +82,7 @@ func Run(ctx context.Context, opt *options.ServerOption) error {
86
82
return err
87
83
88
84
89
- // Create the job controller
90
- jobctrl := queuejob.NewJobController(config, opt)
85
+ jobctrl := queuejob.NewJobController(restConfig, mcadConfig, extConfig)
91
if jobctrl == nil {
92
return fmt.Errorf("failed to create a job controller")
93
0 commit comments