fix: notify task
This commit is contained in:
parent
e24498b0fd
commit
e0cc4e7ed7
|
@ -613,6 +613,7 @@ int32_t schHandleJobRetry(SSchJob *pJob, SSchTask *pTask, SDataBuf *pMsg, int32
|
||||||
int32_t schChkResetJobRetry(SSchJob *pJob, int32_t rspCode);
|
int32_t schChkResetJobRetry(SSchJob *pJob, int32_t rspCode);
|
||||||
void schResetTaskForRetry(SSchJob *pJob, SSchTask *pTask);
|
void schResetTaskForRetry(SSchJob *pJob, SSchTask *pTask);
|
||||||
int32_t schChkUpdateRedirectCtx(SSchJob *pJob, SSchTask *pTask, SEpSet *pEpSet, int32_t rspCode);
|
int32_t schChkUpdateRedirectCtx(SSchJob *pJob, SSchTask *pTask, SEpSet *pEpSet, int32_t rspCode);
|
||||||
|
int32_t schNotifyJobAllTasks(SSchJob *pJob, ETaskNotifyType type);
|
||||||
|
|
||||||
extern SSchDebug gSCHDebug;
|
extern SSchDebug gSCHDebug;
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,8 @@ int32_t schProcessFetchRsp(SSchJob *pJob, SSchTask *pTask, char *msg, int32_t rs
|
||||||
SCH_ERR_JRET(qExecExplainEnd(pJob->explainCtx, &pRsp));
|
SCH_ERR_JRET(qExecExplainEnd(pJob->explainCtx, &pRsp));
|
||||||
if (pRsp) {
|
if (pRsp) {
|
||||||
SCH_ERR_JRET(schProcessOnExplainDone(pJob, pTask, pRsp));
|
SCH_ERR_JRET(schProcessOnExplainDone(pJob, pTask, pRsp));
|
||||||
|
} else {
|
||||||
|
SCH_ERR_JRET(schNotifyJobAllTasks(pJob, TASK_NOTIFY_FINISHED));
|
||||||
}
|
}
|
||||||
|
|
||||||
taosMemoryFreeClear(msg);
|
taosMemoryFreeClear(msg);
|
||||||
|
|
Loading…
Reference in New Issue