mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +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
|
|
@ -27,6 +27,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"
|
||||
_ "golang.org/x/mobile/bind"
|
||||
|
|
@ -56,6 +57,8 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang
|
|||
model.LoadFlashcards()
|
||||
model.LoadAssetsTexts()
|
||||
|
||||
go task.Loop()
|
||||
|
||||
go model.AutoGenerateDocHistory()
|
||||
go model.AutoSync()
|
||||
go model.AutoStat()
|
||||
|
|
@ -63,7 +66,7 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang
|
|||
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