config(core): 更新应用配置和定时任务调度
- 修改默认激活环境从 ysb2 到 glt2 - 调整经销商佣金解冻任务执行频率从 30 秒到 20 秒 - 修改订单自动取消任务执行频率从 5 分钟到 1 分钟
This commit is contained in:
@@ -115,7 +115,7 @@ public class DealerCommissionUnfreeze10584Task {
|
||||
|
||||
private final AtomicBoolean running = new AtomicBoolean(false);
|
||||
|
||||
@Scheduled(cron = "${dealer.commission.unfreeze10584.cron:0/30 * * * * ?}")
|
||||
@Scheduled(cron = "${dealer.commission.unfreeze10584.cron:0/20 * * * * ?}")
|
||||
@IgnoreTenant("定时任务无登录态,需忽略租户隔离;内部使用 tenantId=10584 精确过滤")
|
||||
public void run() {
|
||||
if (!running.compareAndSet(false, true)) {
|
||||
|
||||
@@ -38,7 +38,7 @@ public class OrderAutoCancelTask {
|
||||
* 生产环境:每5分钟执行一次
|
||||
* 开发环境:每1分钟执行一次(便于测试)
|
||||
*/
|
||||
@Scheduled(cron = "${shop.order.auto-cancel.cron:0 */5 * * * ?}")
|
||||
@Scheduled(cron = "${shop.order.auto-cancel.cron:0 */1 * * * ?}")
|
||||
@IgnoreTenant("定时任务需要处理所有租户的超时订单")
|
||||
public void cancelExpiredOrders() {
|
||||
if (!orderConfig.getAutoCancel().isEnabled()) {
|
||||
|
||||
@@ -4,7 +4,7 @@ server:
|
||||
# 多环境配置
|
||||
spring:
|
||||
profiles:
|
||||
active: ysb2
|
||||
active: glt2
|
||||
|
||||
application:
|
||||
name: server
|
||||
|
||||
Reference in New Issue
Block a user