diff --git a/huaheng-wms-core/src/main/resources/application-dev.yml b/huaheng-wms-core/src/main/resources/application-dev.yml index 24c7d53..9c090b9 100644 --- a/huaheng-wms-core/src/main/resources/application-dev.yml +++ b/huaheng-wms-core/src/main/resources/application-dev.yml @@ -49,7 +49,7 @@ spring: org: quartz: scheduler: - batchTriggerAcquisitionMaxCount: 50 + batchTriggerAcquisitionMaxCount: 1 instanceName: dev instanceId: AUTO # wrapJobExecutionInUserTransaction: false @@ -59,9 +59,9 @@ spring: tablePrefix: QRTZ_ isClustered: true # 10秒后丢弃等待执行的任务 - misfireThreshold: 60000 + misfireThreshold: 10000 clusterCheckinInterval: 20000 - acquireTriggersWithinLock: false + acquireTriggersWithinLock: true # 使用sqlServer数据源时需放开此配置 # selectWithLockSQL: SELECT* FROM {0}LOCKS WITH (ROWLOCK, UPDLOCK) WHERE LOCK_NAME = ? threadPool: diff --git a/huaheng-wms-core/src/main/resources/application-prod.yml b/huaheng-wms-core/src/main/resources/application-prod.yml index 1d406f4..1ed74e3 100644 --- a/huaheng-wms-core/src/main/resources/application-prod.yml +++ b/huaheng-wms-core/src/main/resources/application-prod.yml @@ -49,7 +49,7 @@ spring: org: quartz: scheduler: - batchTriggerAcquisitionMaxCount: 50 + batchTriggerAcquisitionMaxCount: 1 instanceName: prod instanceId: AUTO # wrapJobExecutionInUserTransaction: false @@ -59,9 +59,9 @@ spring: tablePrefix: QRTZ_ isClustered: true # 10秒后丢弃等待执行的任务 - misfireThreshold: 60000 + misfireThreshold: 10000 clusterCheckinInterval: 20000 - acquireTriggersWithinLock: false + acquireTriggersWithinLock: true # 使用sqlServer数据源时需放开此配置 # selectWithLockSQL: SELECT* FROM {0}LOCKS WITH (ROWLOCK, UPDLOCK) WHERE LOCK_NAME = ? threadPool: diff --git a/huaheng-wms-core/src/main/resources/application-test.yml b/huaheng-wms-core/src/main/resources/application-test.yml index a631245..1e8c87d 100644 --- a/huaheng-wms-core/src/main/resources/application-test.yml +++ b/huaheng-wms-core/src/main/resources/application-test.yml @@ -49,7 +49,7 @@ spring: org: quartz: scheduler: - batchTriggerAcquisitionMaxCount: 50 + batchTriggerAcquisitionMaxCount: 1 instanceName: test instanceId: AUTO # wrapJobExecutionInUserTransaction: false @@ -59,9 +59,9 @@ spring: tablePrefix: QRTZ_ isClustered: true # 10秒后丢弃等待执行的任务 - misfireThreshold: 60000 + misfireThreshold: 10000 clusterCheckinInterval: 20000 - acquireTriggersWithinLock: false + acquireTriggersWithinLock: true # 使用sqlServer数据源时需放开此配置 # selectWithLockSQL: SELECT* FROM {0}LOCKS WITH (ROWLOCK, UPDLOCK) WHERE LOCK_NAME = ? threadPool: