Commit 61de1ba9 authored by David Eads's avatar David Eads

allow disabling the scheduler port

parent 28f6b3fc
......@@ -93,7 +93,9 @@ func Run(s *options.SchedulerServer) error {
return fmt.Errorf("error creating scheduler: %v", err)
}
go startHTTP(s)
if s.Port != -1 {
go startHTTP(s)
}
stop := make(chan struct{})
defer close(stop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment