fix(stream): check items in queue and qall, stead of only the queue items.

This commit is contained in:
Haojun Liao 2023-10-07 19:16:25 +08:00
parent d11c0a113c
commit 0e8a8aabc1
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ int32_t streamTryExec(SStreamTask* pTask) {
}
taosThreadMutexLock(&pTask->lock);
if (taosQueueEmpty(pTask->inputInfo.queue->pQueue) || streamTaskShouldStop(&pTask->status) ||
if ((streamQueueGetNumOfItems(pTask->inputInfo.queue) > 0) || streamTaskShouldStop(&pTask->status) ||
streamTaskShouldPause(&pTask->status)) {
atomic_store_8(&pTask->status.schedStatus, TASK_SCHED_STATUS__INACTIVE);
taosThreadMutexUnlock(&pTask->lock);