func main() { resScheduler := mesosrel.NewResMan() go func() { resScheduler.Run() }() go func() { scheduler.CheckAutoRunJobs(resScheduler) }() s := scheduler.NewServer(":9090", resScheduler) s.Serve() }
func main() { flag.Parse() Init() resScheduler := mesosrel.NewResMan() go func() { log.Debug("master:", *master) resScheduler.Run(*master) }() go func() { scheduler.CheckAutoRunJobs(resScheduler) }() s := scheduler.NewServer(":9090", resScheduler) s.Serve() }
func (self *LeaderTask) Run() error { resScheduler := mesosrel.NewResMan() go func() { log.Debug("master:", *master) resScheduler.Run(*master) }() go func() { scheduler.CheckAutoRunJobs(resScheduler) }() go func() { http.ListenAndServe(":9091", nil) }() s := scheduler.NewServer(":9090", resScheduler) s.Serve() log.Fatal("End of Run()") return nil }