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 08:07:43 UTC
[GitHub] [dolphinscheduler] SbloodyS commented on a diff in pull request #10383: Add some warning log in master
SbloodyS commented on code in PR #10383:
URL: https://github.com/apache/dolphinscheduler/pull/10383#discussion_r893200042
##########
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:
I think it may cause rerun instantly without sleep if there are some exceptions before this...
--
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