From 260155fd613188411ae08e6ad49b857c4f3b840b Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 11 Dec 2023 00:52:14 +0800 Subject: [PATCH] :art: Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842 --- kernel/job/cron.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/job/cron.go b/kernel/job/cron.go index a95119ceb65..a6206877e68 100644 --- a/kernel/job/cron.go +++ b/kernel/job/cron.go @@ -38,12 +38,12 @@ func StartCron() { go every(util.SQLFlushInterval, sql.FlushTxJob) go every(util.SQLFlushInterval, sql.FlushHistoryTxJob) go every(util.SQLFlushInterval, sql.FlushAssetContentTxJob) - //go every(10*time.Minute, model.FixIndexJob) - //go every(10*time.Minute, model.IndexEmbedBlockJob) - //go every(10*time.Minute, model.CacheVirtualBlockRefJob) - //go every(30*time.Second, model.OCRAssetsJob) - //go every(30*time.Second, model.FlushAssetsTextsJob) - //go every(30*time.Second, model.HookDesktopUIProcJob) + go every(10*time.Minute, model.FixIndexJob) + go every(10*time.Minute, model.IndexEmbedBlockJob) + go every(10*time.Minute, model.CacheVirtualBlockRefJob) + go every(30*time.Second, model.OCRAssetsJob) + go every(30*time.Second, model.FlushAssetsTextsJob) + go every(30*time.Second, model.HookDesktopUIProcJob) } func every(interval time.Duration, f func()) {