Browse Source

[Improvement][api]Start the downstream workflow when it is online (#13257)

Start the downstream workflow when it is online
XCL 2 years ago
parent
commit
a75a69f3ec

+ 1 - 1
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java

@@ -1142,7 +1142,7 @@ public class ExecutorServiceImpl extends BaseServiceImpl implements ExecutorServ
     }
 
     /**
-     * get complement dependent process definition list
+     * get complement dependent online process definition list
      */
     private List<DependentProcessDefinition> getComplementDependentDefinitionList(long processDefinitionCode,
                                                                                   CycleEnum processDefinitionCycle,

+ 1 - 0
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/WorkFlowLineageMapper.xml

@@ -161,6 +161,7 @@
             AND a.task_params LIKE concat('%', #{code}, '%')
         </if>
         AND a.task_type = 'DEPENDENT'
+        AND c.release_state = 1
     </select>
 
     <select id="queryTaskSubProcessDepOnProcess" resultType="org.apache.dolphinscheduler.dao.entity.TaskMainInfo">