Skip to content

Commit

Permalink
MOSIP-35611 Fixed startup issue
Browse files Browse the repository at this point in the history
Signed-off-by: kameshsr <[email protected]>
  • Loading branch information
kameshsr committed Nov 29, 2024
1 parent 6eb2a75 commit 0f59e00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,8 @@ private void addInterceptors(RestTemplate restTemplate) {
@Bean
public ThreadPoolTaskScheduler threadPoolTaskScheduler() {
ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();
threadPoolTaskScheduler.setPoolSize(5);
threadPoolTaskScheduler.setThreadNamePrefix("ThreadPoolTaskScheduler");
threadPoolTaskScheduler.setPoolSize(poolSize);
threadPoolTaskScheduler.setThreadNamePrefix("ThreadPoolTaskScheduler");
threadPoolTaskScheduler.setWaitForTasksToCompleteOnShutdown(waitForTasksToCompleteOnShutdown);
threadPoolTaskScheduler.setAwaitTerminationSeconds(awaitTerminationSeconds);
return threadPoolTaskScheduler;
Expand Down

0 comments on commit 0f59e00

Please sign in to comment.