SbloodyS commented on issue #7093:
URL: 
https://github.com/apache/dolphinscheduler/issues/7093#issuecomment-983344229


   It seems that the logic is wrong in 
org.apache.dolphinscheduler.server.master.runner.StateWheelExecuteThread#checkTask.
   
   ```
       private void checkTask() {
           if (taskInstanceCheckList.isEmpty()) {
               return;
           }
   
           for (TaskInstance taskInstance : 
this.taskInstanceCheckList.values()) {
               if (TimeoutFlag.OPEN == 
taskInstance.getTaskDefine().getTimeoutFlag()) {
                   long timeRemain = 
DateUtils.getRemainTime(taskInstance.getStartTime(), 
taskInstance.getTaskDefine().getTimeout() * Constants.SEC_2_MINUTES_TIME_UNIT);
                   if (0 <= timeRemain && processTimeout(taskInstance)) {
                       taskInstanceCheckList.remove(taskInstance.getId());
                       return;
                   }
               }
               if (taskInstance.taskCanRetry() && 
taskInstance.retryTaskIntervalOverTime()) {
                   processDependCheck(taskInstance);
                   taskInstanceCheckList.remove(taskInstance.getId());
               }
               if (taskInstance.isSubProcess() || taskInstance.isDependTask()) {
                   processDependCheck(taskInstance);
               }
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to