fix: task reschedule issue
This commit is contained in:
parent
116f06d028
commit
9a7fec10af
|
@ -358,6 +358,11 @@ int32_t schRescheduleTask(SSchJob *pJob, SSchTask *pTask) {
|
|||
|
||||
int32_t schChkUpdateRedirectCtx(SSchJob *pJob, SSchTask *pTask, SEpSet *pEpSet, int32_t rspCode) {
|
||||
SSchRedirectCtx *pCtx = &pTask->redirectCtx;
|
||||
if (JOB_TASK_STATUS_EXEC == pTask->status) {
|
||||
SCH_TASK_DLOG("task not start yet, rspCode:%d", rspCode);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
||||
if (!pCtx->inRedirect) {
|
||||
pCtx->inRedirect = true;
|
||||
pCtx->periodMs = tsRedirectPeriod;
|
||||
|
|
Loading…
Reference in New Issue