fix(stream): check the status before exec stream task when handling the dispatch requests.
This commit is contained in:
parent
02610f5546
commit
c403a15f36
|
@ -255,10 +255,14 @@ int32_t streamProcessDispatchMsg(SStreamTask* pTask, SStreamDispatchReq* pReq, S
|
||||||
|
|
||||||
tDeleteStreamDispatchReq(pReq);
|
tDeleteStreamDispatchReq(pReq);
|
||||||
|
|
||||||
|
int8_t st = pTask->status.taskStatus;
|
||||||
|
if (st == TASK_STATUS__NORMAL || st == TASK_STATUS__SCAN_HISTORY || st == TASK_STATUS__CK) {
|
||||||
int8_t schedStatus = streamTaskSetSchedStatusWait(pTask);
|
int8_t schedStatus = streamTaskSetSchedStatusWait(pTask);
|
||||||
if (schedStatus == TASK_SCHED_STATUS__INACTIVE) {
|
if (schedStatus == TASK_SCHED_STATUS__INACTIVE) {
|
||||||
streamTryExec(pTask);
|
streamTryExec(pTask);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue