Technoboy- opened a new issue #1515: FetchTaskThread minor bug
URL: https://github.com/apache/incubator-dolphinscheduler/issues/1515
 
 
   should not sleep there.
   ```
   boolean runCheckFlag = 
OSUtils.checkResource(workerConfig.getWorkerMaxCpuloadAvg(), 
workerConfig.getWorkerReservedMemory()) && checkThreadCount(poolExecutor);
      
   Thread.sleep(Constants.SLEEP_TIME_MILLIS);
   
                   if(!runCheckFlag) {
                       continue;
                   }
   ```
   i think the right way is :
   
   ```
   boolean runCheckFlag = 
OSUtils.checkResource(workerConfig.getWorkerMaxCpuloadAvg(), 
workerConfig.getWorkerReservedMemory()) && checkThreadCount(poolExecutor);
   
                   if(!runCheckFlag) {
                       Thread.sleep(Constants.SLEEP_TIME_MILLIS);
                       continue;
                   }
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to