This commit is contained in:
Liang Ding 2023-01-24 20:22:30 +08:00
parent 8647c93142
commit 95c5c1d8ae
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -112,7 +112,7 @@ const (
func StatusLoop() {
for {
time.Sleep(1000 * time.Millisecond)
time.Sleep(5 * time.Second)
tasks := taskQueue
data := map[string]interface{}{}
var items []map[string]interface{}
@ -132,7 +132,7 @@ func StatusLoop() {
data["tasks"] = items
util.PushBackgroundTask(data)
if 0 < len(tasks) {
time.Sleep(1000 * time.Millisecond)
time.Sleep(5 * time.Second)
}
}
}