fix(stream): reset the scheduler status.

This commit is contained in:
Haojun Liao 2023-11-25 00:54:32 +08:00
parent c937f42d88
commit b9c727575d
1 changed files with 2 additions and 0 deletions

View File

@ -2044,6 +2044,8 @@ int32_t tqProcessTaskDropHTask(STQ* pTq, SRpcMsg* pMsg) {
SStreamTaskId id = {.streamId = pTask->hTaskInfo.id.streamId, .taskId = pTask->hTaskInfo.id.taskId};
streamBuildAndSendDropTaskMsg(pTask->pMsgCb, pMeta->vgId, &id);
// clear the scheduler status
streamTaskSetSchedStatusInactive(pTask);
streamMetaReleaseTask(pMeta, pTask);
return TSDB_CODE_SUCCESS;
}