mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
98f682e507
commit
492389470f
6 changed files with 181 additions and 38 deletions
|
|
@ -23,6 +23,7 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/server"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
|
@ -42,6 +43,8 @@ func main() {
|
|||
model.LoadFlashcards()
|
||||
model.LoadAssetsTexts()
|
||||
|
||||
go task.Loop()
|
||||
|
||||
go model.AutoGenerateDocHistory()
|
||||
go model.AutoSync()
|
||||
go model.AutoStat()
|
||||
|
|
@ -49,7 +52,7 @@ func main() {
|
|||
util.PushClearAllMsg()
|
||||
go model.AutoRefreshCheck()
|
||||
go model.AutoFlushTx()
|
||||
go sql.AutoFlushTreeQueue()
|
||||
go sql.AutoFlushQueue()
|
||||
go treenode.AutoFlushBlockTree()
|
||||
go cache.LoadAssets()
|
||||
go model.AutoFixIndex()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue