🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-18 23:05:13 +08:00
parent c40355e47f
commit 2d94fd2b76
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 9 additions and 7 deletions

View file

@ -1,7 +1,6 @@
package model
import (
"github.com/dustin/go-humanize"
"io"
"os"
"path/filepath"
@ -12,9 +11,11 @@ import (
"time"
"github.com/88250/gulu"
"github.com/dustin/go-humanize"
"github.com/panjf2000/ants/v2"
"github.com/siyuan-note/logging"
"github.com/siyuan-note/siyuan/kernel/cache"
"github.com/siyuan-note/siyuan/kernel/task"
"github.com/siyuan-note/siyuan/kernel/util"
)
@ -24,7 +25,7 @@ func AutoOCRAssets() {
}
for {
autoOCRAssets()
task.AppendTask(task.OCRImage, autoOCRAssets)
time.Sleep(7 * time.Second)
}
}