Browse Source

fix #1515 (#1516)

pull/2/head
Tboy 5 years ago committed by qiaozhanwei
parent
commit
67cde18cc3
  1. 3
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/FetchTaskThread.java

3
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/runner/FetchTaskThread.java

@ -147,9 +147,8 @@ public class FetchTaskThread implements Runnable{
//check memory and cpu usage and threads
boolean runCheckFlag = OSUtils.checkResource(workerConfig.getWorkerMaxCpuloadAvg(), workerConfig.getWorkerReservedMemory()) && checkThreadCount(poolExecutor);
Thread.sleep(Constants.SLEEP_TIME_MILLIS);
if(!runCheckFlag) {
Thread.sleep(Constants.SLEEP_TIME_MILLIS);
continue;
}

Loading…
Cancel
Save