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()) } }
func (c Clock) Stop() { log.Info("stoping cron scheduler: %#v", jobrunner.StatusJson()) jobrunner.Stop() }