Skip to content

Commit

Permalink
🎨 Improve kernel stability by eliminating some data races #9842
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 10, 2023
1 parent fa95a41 commit 260155f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kernel/job/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 260155f

Please sign in to comment.