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 2021/02/14 09:57:23 UTC
[GitHub] [incubator-dolphinscheduler] CalvinKirs commented on a change in pull request #4747: [Fix-4137][Server]:TaskPriorityQueueConsumer no need to sleep for one second.
CalvinKirs commented on a change in pull request #4747:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/4747#discussion_r575783673
##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java
##########
@@ -125,10 +125,6 @@ public void run() {
int fetchTaskNum = masterConfig.getMasterDispatchTaskNumber();
failedDispatchTasks.clear();
for (int i = 0; i < fetchTaskNum; i++) {
- if (taskPriorityQueue.size() <= 0) {
- Thread.sleep(Constants.SLEEP_TIME_MILLIS);
Review comment:
See for specific reasons #4140
----------------------------------------------------------------
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:
users@infra.apache.org