Commit 4d24184bfe5c23ca16e73c3ebcb3e41b77292f43
1 parent
26b41e38
【I58FJ5】修改quartz默认配置参数,延迟启动解决服务重启多次执行问题
Showing
3 changed files
with
12 additions
and
6 deletions
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
... | ... | @@ -41,6 +41,8 @@ spring: |
41 | 41 | initialize-schema: embedded |
42 | 42 | #定时任务启动开关,true-开 false-关 |
43 | 43 | auto-startup: true |
44 | + #延迟10秒启动定时任务 | |
45 | + startup-delay: 1s | |
44 | 46 | #启动时更新己存在的Job |
45 | 47 | overwrite-existing-jobs: true |
46 | 48 | properties: |
... | ... | @@ -54,8 +56,8 @@ spring: |
54 | 56 | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
55 | 57 | tablePrefix: QRTZ_ |
56 | 58 | isClustered: true |
57 | - misfireThreshold: 60000 | |
58 | - clusterCheckinInterval: 10000 | |
59 | + misfireThreshold: 12000 | |
60 | + clusterCheckinInterval: 15000 | |
59 | 61 | threadPool: |
60 | 62 | class: org.quartz.simpl.SimpleThreadPool |
61 | 63 | threadCount: 10 |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml
... | ... | @@ -39,6 +39,8 @@ spring: |
39 | 39 | quartz: |
40 | 40 | job-store-type: jdbc |
41 | 41 | initialize-schema: embedded |
42 | + #延迟10秒启动定时任务 | |
43 | + startup-delay: 1s | |
42 | 44 | #定时任务启动开关,true-开 false-关 |
43 | 45 | auto-startup: true |
44 | 46 | #启动时更新己存在的Job |
... | ... | @@ -54,8 +56,8 @@ spring: |
54 | 56 | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
55 | 57 | tablePrefix: QRTZ_ |
56 | 58 | isClustered: true |
57 | - misfireThreshold: 60000 | |
58 | - clusterCheckinInterval: 10000 | |
59 | + misfireThreshold: 12000 | |
60 | + clusterCheckinInterval: 15000 | |
59 | 61 | threadPool: |
60 | 62 | class: org.quartz.simpl.SimpleThreadPool |
61 | 63 | threadCount: 10 |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-test.yml
... | ... | @@ -41,6 +41,8 @@ spring: |
41 | 41 | initialize-schema: embedded |
42 | 42 | #定时任务启动开关,true-开 false-关 |
43 | 43 | auto-startup: true |
44 | + #延迟10秒启动定时任务 | |
45 | + startup-delay: 1s | |
44 | 46 | #启动时更新己存在的Job |
45 | 47 | overwrite-existing-jobs: true |
46 | 48 | properties: |
... | ... | @@ -54,8 +56,8 @@ spring: |
54 | 56 | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate |
55 | 57 | tablePrefix: QRTZ_ |
56 | 58 | isClustered: true |
57 | - misfireThreshold: 60000 | |
58 | - clusterCheckinInterval: 10000 | |
59 | + misfireThreshold: 12000 | |
60 | + clusterCheckinInterval: 15000 | |
59 | 61 | threadPool: |
60 | 62 | class: org.quartz.simpl.SimpleThreadPool |
61 | 63 | threadCount: 10 |
... | ... |