Skip to content

Commit

Permalink
chore: 스케줄러 풀 조절 (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
songyi00 authored Dec 29, 2024
1 parent 5484604 commit 636d40f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class MissionStatusJob extends AbstractJob<CronTrigger> implements Custom
protected ScheduleBuilder<CronTrigger> getScheduleBuilder() {
// 00:00, 06:00, 12:00, 18:00 마다 실행
return CronScheduleBuilder.cronSchedule("0 0 */6 * * ?")
.withMisfireHandlingInstructionDoNothing();
.withMisfireHandlingInstructionFireAndProceed();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 636d40f

Please sign in to comment.