mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Avoid excessive manual polling with default scheduler
This commit is contained in:
parent
54eb500315
commit
cc44d14722
7 changed files with 40 additions and 15 deletions
|
@ -36,9 +36,13 @@ func (h *handler) refreshAllFeeds(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
go func() {
|
||||
h.pool.Push(jobs)
|
||||
}()
|
||||
slog.Info(
|
||||
"Triggered a manual refresh of all feeds from the web ui",
|
||||
slog.Int64("user_id", userID),
|
||||
slog.Int("nb_jobs", len(jobs)),
|
||||
)
|
||||
|
||||
go h.pool.Push(jobs)
|
||||
|
||||
html.Redirect(w, r, route.Path(h.router, "feeds"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue