chore: 按业务复杂度错峰分散金蝶BFI定时任务调度时间
原 6 个调度默认值全部压在整点边界(:00/:10/:20 同时起 4 个重任务),按复杂度错开起始分钟、频率不变、互不重叠:payResult :01/10min、receiptClaimPush :04/10min、autoSync.retry :05/10min、receivedInvoiceResult :08/10min、invoiceReceipt :16/30min、billLock.retry :02/5min;整点留缓冲,同步更新代码默认值、本地 yaml 兜底与 Nacos blade-dev.yaml
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ public class InvoiceReceiptKingdeeSyncTask {
|
||||
private final BfiProperties bfiProperties;
|
||||
|
||||
/** 金蝶全票池同步调度,默认每30分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.invoiceReceipt.cron:0 */30 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.invoiceReceipt.cron:0 16/30 * * * ?}")
|
||||
public void syncKingdeeInvoicePool() {
|
||||
if (!bfiProperties.getInvoiceReceipt().isSyncEnabled()) {
|
||||
return;
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ public class KingdeeAutoSyncRetryTask {
|
||||
private final BfiProperties bfiProperties;
|
||||
|
||||
/** failed 定时重推调度,默认每10分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.autoSync.retryCron:0 */10 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.autoSync.retryCron:0 5/10 * * * ?}")
|
||||
public void retryKingdeeFailed() {
|
||||
if (!bfiProperties.getAutoSync().isRetryEnabled()) {
|
||||
return;
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ public class KingdeeBillLockRetryTask {
|
||||
private final BfiProperties bfiProperties;
|
||||
|
||||
/** 锁定补偿调度,默认每5分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.billLock.retryCron:0 */5 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.billLock.retryCron:0 2/5 * * * ?}")
|
||||
public void retryFailedBillLocks() {
|
||||
if (!bfiProperties.getBillLock().isRetryEnabled()) {
|
||||
return;
|
||||
|
||||
+2
-2
@@ -57,7 +57,7 @@ public class PaymentKingdeeResultTask {
|
||||
private final BfiProperties bfiProperties;
|
||||
|
||||
/** 金蝶结果回写调度,默认每10分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.payResult.cron:0 */10 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.payResult.cron:0 1/10 * * * ?}")
|
||||
public void syncKingdeePaymentResult() {
|
||||
if (!bfiProperties.getPayResult().isSyncEnabled()) {
|
||||
return;
|
||||
@@ -86,7 +86,7 @@ public class PaymentKingdeeResultTask {
|
||||
}
|
||||
|
||||
/** 金蝶收票单结果回写调度(异常回收/指定补偿/单号补登),默认每10分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.receivedInvoiceResult.cron:0 */10 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.receivedInvoiceResult.cron:0 8/10 * * * ?}")
|
||||
public void syncKingdeeReceivedInvoiceResult() {
|
||||
if (!bfiProperties.getReceivedInvoiceResult().isSyncEnabled()) {
|
||||
return;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class ReceiptClaimPushTask {
|
||||
private final BfiProperties bfiProperties;
|
||||
|
||||
/** 收款认领推送调度,默认每10分钟执行一次 */
|
||||
@Scheduled(cron = "${thirdParty.bfi.receiptClaimPush.cron:0 */10 * * * ?}")
|
||||
@Scheduled(cron = "${thirdParty.bfi.receiptClaimPush.cron:0 4/10 * * * ?}")
|
||||
public void pushClaimToKingdee() {
|
||||
if (!bfiProperties.getReceiptClaimPush().isSyncEnabled()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user