1
This commit is contained in:
@@ -12,8 +12,9 @@ public class GoofishAsyncConfig {
|
||||
@Bean("goofishTaskExecutor")
|
||||
public Executor goofishTaskExecutor() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
executor.setCorePoolSize(2);
|
||||
executor.setMaxPoolSize(8);
|
||||
// 仅用于未配置 RocketMQ 时 HTTP 回调路径的 @Async;过小易在拉单/回调并发时排队拖慢企微通知
|
||||
executor.setCorePoolSize(4);
|
||||
executor.setMaxPoolSize(16);
|
||||
executor.setQueueCapacity(500);
|
||||
executor.setThreadNamePrefix("goofish-");
|
||||
executor.initialize();
|
||||
|
||||
Reference in New Issue
Block a user