You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/06/09 11:03:19 UTC

[GitHub] [dolphinscheduler] ruanwenjun commented on a diff in pull request #10383: Add some warning log in master

ruanwenjun commented on code in PR #10383:
URL: https://github.com/apache/dolphinscheduler/pull/10383#discussion_r893367038


##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/StateWheelExecuteThread.java:
##########
@@ -84,16 +85,17 @@ public class StateWheelExecuteThread extends Thread {
 
     @Override
     public void run() {
+        Duration checkInterval = Duration.ofMillis(masterConfig.getStateWheelInterval() * Constants.SLEEP_TIME_MILLIS);
         while (Stopper.isRunning()) {
             try {
                 checkTask4Timeout();
                 checkTask4Retry();
                 checkTask4State();
                 checkProcess4Timeout();
+                ThreadUtils.sleep(checkInterval);

Review Comment:
   Good catch.



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org