From 00d08042f19273396f360bfe5e7ed337d69ef78c Mon Sep 17 00:00:00 2001 From: zy <953725892@qq.com> Date: Sun, 20 Aug 2023 22:53:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20#I7HJFX=20=E4=B8=BA=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=BC=82=E6=AD=A5=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E5=A2=9E=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC=E5=92=8C=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=87=8A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/META-INF/liteflow-default.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liteflow-spring-boot-starter/src/main/resources/META-INF/liteflow-default.properties b/liteflow-spring-boot-starter/src/main/resources/META-INF/liteflow-default.properties index 6ebe3d3be..597232634 100644 --- a/liteflow-spring-boot-starter/src/main/resources/META-INF/liteflow-default.properties +++ b/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 From 88a20459f028597e92c103156effca00bc0ae861 Mon Sep 17 00:00:00 2001 From: zy <953725892@qq.com> Date: Sun, 20 Aug 2023 22:56:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20#I7HJFX=20=E4=B8=BA=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E5=BC=82=E6=AD=A5=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E6=96=B0=E5=A2=9E=E9=85=8D=E7=BD=AE=E9=A1=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=80=BC=E5=92=8C=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E9=87=8A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...itional-spring-configuration-metadata.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/liteflow-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/liteflow-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 5aadf9e05..b6297cbee 100644 --- a/liteflow-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/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" } ] } \ No newline at end of file