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

This commit is contained in:
Liang Ding 2023-01-25 22:54:29 +08:00
parent 6649220283
commit 4916baf31a
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 38 additions and 32 deletions

View file

@ -19,6 +19,7 @@ package model
import (
"errors"
"fmt"
"github.com/siyuan-note/siyuan/kernel/task"
"github.com/88250/lute"
"github.com/88250/lute/ast"
@ -393,7 +394,7 @@ func getBlock(id string) (ret *Block, err error) {
tree, err := loadTreeByBlockID(id)
if nil != err {
if isIndexing() {
if task.ContainIndexTask() {
err = ErrIndexing
}
return