fix:Depend check bug (#2229)

* fix:#1787

* fix:#1787
This commit is contained in:
Rubik-W 2020-03-20 21:27:52 +08:00 committed by GitHub
parent 4318e860d5
commit ca6872a9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -674,9 +674,9 @@ public class MasterExecThread implements Runnable {
TaskNode taskNode = dag.getNode(taskName);
List<String> depNameList = taskNode.getDepList();
for(String depsNode : depNameList ){
if(forbiddenTaskList.containsKey(depsNode) ||
skipTaskNodeList.containsKey(depsNode)){
if(!dag.containsNode(depsNode)
|| forbiddenTaskList.containsKey(depsNode)
|| skipTaskNodeList.containsKey(depsNode)){
continue;
}
// dependencies must be fully completed