mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +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()
|
defer queueLock.Unlock()
|
||||||
|
|
||||||
if QueueStatusRunning != taskQueueStatus {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ func AppendTask(action string, handler interface{}, args ...interface{}) {
|
|||||||
defer queueLock.Unlock()
|
defer queueLock.Unlock()
|
||||||
|
|
||||||
if QueueStatusRunning != taskQueueStatus {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user