zhongjiajie commented on a change in pull request #6904:
URL: https://github.com/apache/dolphinscheduler/pull/6904#discussion_r752850991



##########
File path: 
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/consumer/TaskPriorityQueueConsumer.java
##########
@@ -130,14 +130,16 @@ protected boolean dispatch(TaskPriority taskPriority) {
             TaskExecutionContext context = 
taskPriority.getTaskExecutionContext();
             ExecutionContext executionContext = new 
ExecutionContext(context.toCommand(), ExecutorType.WORKER, 
context.getWorkerGroup());
 
-            if (taskInstanceIsFinalState(taskPriority.getTaskId())) {
-                // when task finish, ignore this task, there is no need to 
dispatch anymore
-                return true;
-            } else {
-                result = dispatcher.dispatch(executionContext);
+            if (isTaskNeedToCheck(taskPriority)) {

Review comment:
       test




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to