rewrite background jobs
This commit is contained in:
parent
2392a72856
commit
fb0833618f
3 changed files with 34 additions and 27 deletions
|
|
@ -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(),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue