提交 79b05a44 编写于 作者: leon-baoliang's avatar leon-baoliang

change forbidden task process

上级 a7db4c3f
...@@ -250,10 +250,10 @@ public class DagHelper { ...@@ -250,10 +250,10 @@ public class DagHelper {
startVertexs = dag.getBeginNode(); startVertexs = dag.getBeginNode();
} }
Collection<String> tmpStartVertexs = new ArrayList<>(); List<String> tmpStartVertexs = new ArrayList<>();
tmpStartVertexs.addAll(startVertexs); tmpStartVertexs.addAll(startVertexs);
for(String start : tmpStartVertexs){ for(String start : startVertexs){
TaskNode startNode = dag.getNode(start); TaskNode startNode = dag.getNode(start);
if(!startNode.isForbidden()){ if(!startNode.isForbidden()){
continue; continue;
...@@ -262,13 +262,13 @@ public class DagHelper { ...@@ -262,13 +262,13 @@ public class DagHelper {
for(String post : postNodes){ for(String post : postNodes){
if(checkForbiddenPostCanSubmit(post, dag)){ if(checkForbiddenPostCanSubmit(post, dag)){
startVertexs.add(post); tmpStartVertexs.add(post);
} }
} }
startVertexs.remove(start); tmpStartVertexs.remove(start);
} }
return startVertexs; return tmpStartVertexs;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册