allow disabling the scheduler port
This commit is contained in:
@@ -93,7 +93,9 @@ func Run(s *options.SchedulerServer) error {
|
|||||||
return fmt.Errorf("error creating scheduler: %v", err)
|
return fmt.Errorf("error creating scheduler: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
go startHTTP(s)
|
if s.Port != -1 {
|
||||||
|
go startHTTP(s)
|
||||||
|
}
|
||||||
|
|
||||||
stop := make(chan struct{})
|
stop := make(chan struct{})
|
||||||
defer close(stop)
|
defer close(stop)
|
||||||
|
Reference in New Issue
Block a user