fix(stream): exec task in task queuee threads.

This commit is contained in:
Haojun Liao 2023-09-20 17:30:41 +08:00
parent 1ebafe4a1f
commit d752fb1ed6
1 changed files with 1 additions and 7 deletions

View File

@ -259,13 +259,7 @@ int32_t streamProcessDispatchMsg(SStreamTask* pTask, SStreamDispatchReq* pReq, S
}
tDeleteStreamDispatchReq(pReq);
if (st == TASK_STATUS__NORMAL || st == TASK_STATUS__SCAN_HISTORY || st == TASK_STATUS__CK) {
int8_t schedStatus = streamTaskSetSchedStatusWait(pTask);
if (schedStatus == TASK_SCHED_STATUS__INACTIVE) {
streamTryExec(pTask);
}
}
streamSchedExec(pTask);
return 0;
}