Explorar el Código

!210 fix #I7HJFX 为循环表达式异步模式的新增配置项添加默认值和自动提示释义
Merge pull request !210 from zhhhhy/dev

铂赛东 hace 1 año
padre
commit
37cb6e73b7

+ 21 - 0
liteflow-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json

@@ -179,6 +179,27 @@
       "description": "Set file change monitoring.",
       "sourceType": "com.yomahub.liteflow.springboot.LiteflowMonitorProperty",
       "defaultValue": false
+    },
+    {
+      "name": "liteflow.parallel-max-workers",
+      "type": "java.lang.Integer",
+      "description": "Set the async thread pool worker max-size on \" parallel-loop \" mode.",
+      "sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty",
+      "defaultValue": 16
+    },
+    {
+      "name": "liteflow.parallel-queue-limit",
+      "type": "java.lang.Integer",
+      "description": "Set the async thread pool queue max-size on \" parallel-loop \" mode.",
+      "sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty",
+      "defaultValue": 512
+    },
+    {
+      "name": "liteflow.parallel-loop-executor-class",
+      "type": "java.lang.String",
+      "description": "Custom thread pool implement for parallel-loop executor.",
+      "sourceType": "com.yomahub.liteflow.springboot.LiteflowProperty",
+      "defaultValue": "com.yomahub.liteflow.thread.LiteFlowDefaultParallelLoopExecutorBuilder"
     }
   ]
 }

+ 3 - 0
liteflow-spring-boot-starter/src/main/resources/META-INF/liteflow-default.properties

@@ -20,3 +20,6 @@ liteflow.monitor.queue-limit=200
 liteflow.monitor.delay=300000
 liteflow.monitor.period=300000
 liteflow.enable-monitor-file=false
+liteflow.parallel-max-workers=16
+liteflow.parallel-queue-limit=512
+liteflow.parallel-loop-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultParallelLoopExecutorBuilder