allow disabling the scheduler port

pull/6/head
David Eads 2017-08-29 11:43:27 -04:00
parent 28f6b3fcc0
commit 61de1ba986
1 changed files with 3 additions and 1 deletions

View File

@ -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)