mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 03:21:21 +08:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
89fd4d9264
commit
b44f7b30ed
@ -48,7 +48,7 @@ func PrependTask(action string, handler interface{}, args ...interface{}) {
|
||||
defer queueLock.Unlock()
|
||||
|
||||
if QueueStatusRunning != taskQueueStatus {
|
||||
logging.LogWarnf("task queue is paused, action [%s] will be ignored", action)
|
||||
//logging.LogWarnf("task queue is paused, action [%s] will be ignored", action)
|
||||
return
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ func AppendTask(action string, handler interface{}, args ...interface{}) {
|
||||
defer queueLock.Unlock()
|
||||
|
||||
if QueueStatusRunning != taskQueueStatus {
|
||||
logging.LogWarnf("task queue is paused, action [%s] will be ignored", action)
|
||||
//logging.LogWarnf("task queue is paused, action [%s] will be ignored", action)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user