From 636d40ffc87aa95d76c153d3438b040dd1c963db Mon Sep 17 00:00:00 2001 From: Songyi Kim <52441906+songyi00@users.noreply.github.com> Date: Sun, 29 Dec 2024 16:58:00 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=8A=A4=EC=BC=80=EC=A4=84=EB=9F=AC?= =?UTF-8?q?=20=ED=92=80=20=EC=A1=B0=EC=A0=88=20(#109)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/nexters/goalpanzi/schedule/MissionStatusJob.java | 2 +- .../nexters/goalpanzi/schedule/SchedulerFactoryConfig.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/nexters/goalpanzi/schedule/MissionStatusJob.java b/src/main/java/com/nexters/goalpanzi/schedule/MissionStatusJob.java index 1c7f76de..c4788f29 100644 --- a/src/main/java/com/nexters/goalpanzi/schedule/MissionStatusJob.java +++ b/src/main/java/com/nexters/goalpanzi/schedule/MissionStatusJob.java @@ -18,7 +18,7 @@ public class MissionStatusJob extends AbstractJob implements Custom protected ScheduleBuilder getScheduleBuilder() { // 00:00, 06:00, 12:00, 18:00 마다 실행 return CronScheduleBuilder.cronSchedule("0 0 */6 * * ?") - .withMisfireHandlingInstructionDoNothing(); + .withMisfireHandlingInstructionFireAndProceed(); } @Override diff --git a/src/main/java/com/nexters/goalpanzi/schedule/SchedulerFactoryConfig.java b/src/main/java/com/nexters/goalpanzi/schedule/SchedulerFactoryConfig.java index ddd595b7..50220350 100644 --- a/src/main/java/com/nexters/goalpanzi/schedule/SchedulerFactoryConfig.java +++ b/src/main/java/com/nexters/goalpanzi/schedule/SchedulerFactoryConfig.java @@ -16,8 +16,8 @@ public class SchedulerFactoryConfig { @Bean(SCHEDULER_THREAD_POOL_EXECUTOR) public ThreadPoolTaskExecutor executor() { final ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(1); - executor.setMaxPoolSize(1); + executor.setCorePoolSize(3); + executor.setMaxPoolSize(3); executor.setThreadNamePrefix("executor"); executor.initialize(); return executor;