Example #1
0
func requestJobs(r render.Render, req *http.Request) {

	if req.URL.Query().Get("json") != "" {
		r.JSON(200, jobrunner.StatusJson())
	} else {
		r.HTML(200, "jobs/Status", jobrunner.StatusPage())
	}
}
Example #2
0
func (c Clock) Stop() {
	log.Info("stoping cron scheduler: %#v", jobrunner.StatusJson())
	jobrunner.Stop()
}