You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by le...@apache.org on 2021/10/21 11:27:19 UTC

[dolphinscheduler] branch dev updated: [DS-6582][Master] fix condition task state (#6583)

This is an automated email from the ASF dual-hosted git repository.

leonbao pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new b642e9c  [DS-6582][Master] fix condition task state (#6583)
b642e9c is described below

commit b642e9ca546d8ea21bbd9f193ff6ff9729037f75
Author: wind <ca...@users.noreply.github.com>
AuthorDate: Thu Oct 21 19:27:13 2021 +0800

    [DS-6582][Master] fix condition task state (#6583)
    
    Co-authored-by: caishunfeng <53...@qq.com>
---
 .../server/master/runner/task/ConditionTaskProcessor.java               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java
index 80d8eba..82be311 100644
--- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java
+++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/task/ConditionTaskProcessor.java
@@ -90,7 +90,6 @@ public class ConditionTaskProcessor extends BaseTaskProcessor {
         Thread.currentThread().setName(threadLoggerInfoName);
         initTaskParameters();
         logger.info("dependent task start");
-        endTask();
         return true;
     }
 
@@ -103,6 +102,7 @@ public class ConditionTaskProcessor extends BaseTaskProcessor {
     public void run() {
         if (conditionResult.equals(DependResult.WAITING)) {
             setConditionResult();
+            endTask();
         } else {
             endTask();
         }