Add ListSchedulerEntries API endpoint

This commit is contained in:
Ken Hibino
2020-12-02 07:19:06 -08:00
parent 3dd6fdc0b0
commit fbbc414bdf
5 changed files with 88 additions and 5 deletions

View File

@@ -87,6 +87,8 @@ func main() {
newListRetryTasksHandlerFunc(inspector)).Methods("GET")
api.HandleFunc("/queues/{qname}/dead_tasks",
newListDeadTasksHandlerFunc(inspector)).Methods("GET")
api.HandleFunc("/scheduler_entries",
newListSchedulerEntriesHandlerFunc(inspector)).Methods("GET")
fs := &staticFileServer{staticPath: "ui/build", indexPath: "index.html"}
router.PathPrefix("/").Handler(fs)