rewrite background jobs

This commit is contained in:
Nazar Kanaev
2020-07-30 20:17:05 +01:00
parent 2392a72856
commit fb0833618f
3 changed files with 34 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ func StaticHandler(rw http.ResponseWriter, req *http.Request) {
func StatusHandler(rw http.ResponseWriter, req *http.Request) {
writeJSON(rw, map[string]interface{}{
"running": handler(req).fetchRunning,
"running": handler(req).queueSize > 0,
"stats": db(req).FeedStats(),
})
}