调整订单取消任务每5分钟执行一次
This commit is contained in:
@@ -38,7 +38,7 @@ public class OrderAutoCancelTask {
|
||||
* 生产环境:每5分钟执行一次
|
||||
* 开发环境:每1分钟执行一次(便于测试)
|
||||
*/
|
||||
@Scheduled(cron = "${shop.order.auto-cancel.cron:0 */1 * * * ?}")
|
||||
@Scheduled(cron = "${shop.order.auto-cancel.cron:0 */5 * * * ?}")
|
||||
@IgnoreTenant("定时任务需要处理所有租户的超时订单")
|
||||
public void cancelExpiredOrders() {
|
||||
if (!orderConfig.getAutoCancel().isEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user