From ca22c083b3f91436c334525536dc58519f13d018 Mon Sep 17 00:00:00 2001 From: He Zhao <32693629+luoyedeyi@users.noreply.github.com> Date: Tue, 13 Sep 2022 16:05:40 +0800 Subject: [PATCH] [Fix] [Quartz] cron did not work as expected (#11851) * [Fix] [Quartz] cron did not work as expected * [Fix] [Quartz] make the value of batchTriggerAcquisitionMaxCount to 1(default value) Co-authored-by: hezhao2 --- dolphinscheduler-api/src/main/resources/application.yaml | 1 + .../src/main/resources/application.yaml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/resources/application.yaml b/dolphinscheduler-api/src/main/resources/application.yaml index 9a8381454b..aa68578219 100644 --- a/dolphinscheduler-api/src/main/resources/application.yaml +++ b/dolphinscheduler-api/src/main/resources/application.yaml @@ -76,6 +76,7 @@ spring: org.quartz.scheduler.makeSchedulerThreadDaemon: true org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.PostgreSQLDelegate org.quartz.jobStore.clusterCheckinInterval: 5000 + org.quartz.scheduler.batchTriggerAcquisitionMaxCount: 1 mvc: pathmatch: matching-strategy: ANT_PATH_MATCHER diff --git a/dolphinscheduler-standalone-server/src/main/resources/application.yaml b/dolphinscheduler-standalone-server/src/main/resources/application.yaml index 5b4c6fdac3..4fde80f141 100644 --- a/dolphinscheduler-standalone-server/src/main/resources/application.yaml +++ b/dolphinscheduler-standalone-server/src/main/resources/application.yaml @@ -45,7 +45,7 @@ spring: jdbc: initialize-schema: never properties: - org.quartz.threadPool:threadPriority: 5 + org.quartz.threadPool.threadPriority: 5 org.quartz.jobStore.isClustered: true org.quartz.jobStore.class: org.springframework.scheduling.quartz.LocalDataSourceJobStore org.quartz.scheduler.instanceId: AUTO @@ -60,6 +60,7 @@ spring: org.quartz.scheduler.makeSchedulerThreadDaemon: true org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate org.quartz.jobStore.clusterCheckinInterval: 5000 + org.quartz.scheduler.batchTriggerAcquisitionMaxCount: 1 servlet: multipart: max-file-size: 1024MB