Browse Source

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

Liang Ding 2 years ago
parent
commit
b44f7b30ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      kernel/task/queue.go

+ 2 - 2
kernel/task/queue.go

@@ -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
 	}
 	}