From 8047a324c3f3e5398544808f48c09c749d71d39e Mon Sep 17 00:00:00 2001 From: zhangc <zc@123> Date: 星期六, 30 十一月 2024 12:18:21 +0800 Subject: [PATCH] 优化定时任务线程池配置,调整最大线程数至24 --- src/main/java/com/zy/asrs/task/WorkMastScheduler.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/WorkMastScheduler.java b/src/main/java/com/zy/asrs/task/WorkMastScheduler.java index b5ae4bb..b517d61 100644 --- a/src/main/java/com/zy/asrs/task/WorkMastScheduler.java +++ b/src/main/java/com/zy/asrs/task/WorkMastScheduler.java @@ -26,7 +26,8 @@ @Autowired private WorkMastHandler workMastHandler; - @Scheduled(cron = "0/1 * * * * ? ") + @Scheduled(fixedDelay = 60000) + //@Scheduled(cron = "0/1 * * * * ? ") private void execute(){ List<WrkMast> wrkMasts = wrkMastService.selectToBeCompleteData(); if (wrkMasts.isEmpty()) { -- Gitblit v1.9.1