fix: rename async executor bean to avoid clash with DeploymentExecutor
The @Bean named 'deploymentExecutor' (ThreadPoolTaskExecutor) collided with the @Service class DeploymentExecutor. Rename the bean to 'deploymentTaskExecutor'. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,8 +18,8 @@ public class AsyncConfig {
|
||||
this.runtimeConfig = runtimeConfig;
|
||||
}
|
||||
|
||||
@Bean(name = "deploymentExecutor")
|
||||
public Executor deploymentExecutor() {
|
||||
@Bean(name = "deploymentTaskExecutor")
|
||||
public Executor deploymentTaskExecutor() {
|
||||
var executor = new ThreadPoolTaskExecutor();
|
||||
// Core == max: no burst threads. Deployments beyond pool size queue (up to 25).
|
||||
executor.setCorePoolSize(runtimeConfig.getDeploymentThreadPoolSize());
|
||||
|
||||
@@ -47,7 +47,7 @@ public class DeploymentExecutor {
|
||||
this.runtimeConfig = runtimeConfig;
|
||||
}
|
||||
|
||||
@Async("deploymentExecutor")
|
||||
@Async("deploymentTaskExecutor")
|
||||
public void executeAsync(DeploymentEntity deployment, AppEntity app, EnvironmentEntity env) {
|
||||
try {
|
||||
var jarPath = appService.resolveJarPath(app.getJarStoragePath());
|
||||
|
||||
Reference in New Issue
Block a user