fix(tests): ensure Executor is running before proceeding

This commit is contained in:
brian.mulier
2025-11-28 18:14:19 +01:00
parent fe36f22186
commit 4650de6b44

View File

@@ -49,7 +49,9 @@ public class TestRunner implements Runnable, AutoCloseable {
running.set(true);
poolExecutor = executorsUtils.cachedThreadPool("standalone-runner");
poolExecutor.execute(applicationContext.getBean(ExecutorInterface.class));
ExecutorInterface executor = applicationContext.getBean(ExecutorInterface.class);
servers.add(executor);
poolExecutor.execute(executor);
if (workerEnabled) {
// FIXME: For backward-compatibility with Kestra 0.15.x and earliest we still used UUID for Worker ID instead of IdUtils