lenboo commented on a change in pull request #7283:
URL: https://github.com/apache/dolphinscheduler/pull/7283#discussion_r765502284



##########
File path: 
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java
##########
@@ -95,7 +95,7 @@ public void checkTask4Timeout() {
         }
         for (TaskInstance taskInstance : 
taskInstanceTimeoutCheckList.values()) {
             if (TimeoutFlag.OPEN == 
taskInstance.getTaskDefine().getTimeoutFlag()) {
-                long timeRemain = 
DateUtils.getRemainTime(taskInstance.getStartTime(), 
taskInstance.getTaskDefine().getTimeout() * Constants.SEC_2_MINUTES_TIME_UNIT);
+                long timeRemain = 
DateUtils.getRemainTime(taskInstance.getSubmitTime(), 
taskInstance.getTaskDefine().getTimeout() * Constants.SEC_2_MINUTES_TIME_UNIT);

Review comment:
       because task have not been start, 
   remain time cannot use submit-time as 'start time'.




-- 
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