Merge pull request #22056 from taosdata/fix/task_drop
fix(stream): abort exec when task is dropped.
This commit is contained in:
commit
5afc576b2e
|
@ -404,7 +404,12 @@ int32_t streamExecForAll(SStreamTask* pTask) {
|
|||
while (pTask->taskLevel == TASK_LEVEL__SOURCE) {
|
||||
int8_t status = atomic_load_8(&pTask->status.taskStatus);
|
||||
if (status == TASK_STATUS__DROPPING) {
|
||||
break;
|
||||
if (pInput != NULL) {
|
||||
streamFreeQitem(pInput);
|
||||
}
|
||||
|
||||
qError("s-task:%s task is dropped, abort exec", id);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
if (status != TASK_STATUS__NORMAL && status != TASK_STATUS__PAUSE && status != TASK_STATUS__STOP) {
|
||||
|
|
Loading…
Reference in New Issue