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;
|
this.runtimeConfig = runtimeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean(name = "deploymentExecutor")
|
@Bean(name = "deploymentTaskExecutor")
|
||||||
public Executor deploymentExecutor() {
|
public Executor deploymentTaskExecutor() {
|
||||||
var executor = new ThreadPoolTaskExecutor();
|
var executor = new ThreadPoolTaskExecutor();
|
||||||
// Core == max: no burst threads. Deployments beyond pool size queue (up to 25).
|
// Core == max: no burst threads. Deployments beyond pool size queue (up to 25).
|
||||||
executor.setCorePoolSize(runtimeConfig.getDeploymentThreadPoolSize());
|
executor.setCorePoolSize(runtimeConfig.getDeploymentThreadPoolSize());
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class DeploymentExecutor {
|
|||||||
this.runtimeConfig = runtimeConfig;
|
this.runtimeConfig = runtimeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Async("deploymentExecutor")
|
@Async("deploymentTaskExecutor")
|
||||||
public void executeAsync(DeploymentEntity deployment, AppEntity app, EnvironmentEntity env) {
|
public void executeAsync(DeploymentEntity deployment, AppEntity app, EnvironmentEntity env) {
|
||||||
try {
|
try {
|
||||||
var jarPath = appService.resolveJarPath(app.getJarStoragePath());
|
var jarPath = appService.resolveJarPath(app.getJarStoragePath());
|
||||||
|
|||||||
Reference in New Issue
Block a user