Explorar o código

优化NodeComponent开始时的打印日志的时机

everywhere.z hai 5 meses
pai
achega
26c05e2ff4

+ 4 - 0
liteflow-benchmark/liteflow-benchmark-common/src/test/resources/flow.xml

@@ -30,4 +30,8 @@
     <chain name="chain2">
         THEN(a,b,s1);
     </chain>
+
+    <chain name="chain3">
+        ITERATOR(d).parallel(true).DO(THEN(a,b,c));
+    </chain>
 </flow>

+ 0 - 2
liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/Node.java

@@ -180,8 +180,6 @@ public class Node implements Executable, Cloneable, Rollbackable{
 
 			// 判断是否可执行,所以isAccess经常作为一个组件进入的实际判断要素,用作检查slot里的参数的完备性
 			if (getAccessResult() || instance.isAccess()) {
-				LOG.info("[O]start component[{}] execution", instance.getDisplayName());
-
 				// 这里开始进行重试的逻辑和主逻辑的运行
 				NodeExecutor nodeExecutor = NodeExecutorHelper.loadInstance()
 					.buildNodeExecutor(instance.getNodeExecutorClass());