fix(core): declare the FlowExecutor as a bean (#3389)

This commit is contained in:
Loïc Mathieu
2024-04-02 08:45:02 +02:00
committed by GitHub
parent 1ee6633ca4
commit 41ade3eb90
3 changed files with 2 additions and 5 deletions

View File

@@ -111,8 +111,6 @@ public class MemoryExecutor implements ExecutorInterface {
flowListeners.run();
flowListeners.listen(flows -> this.allFlows = flows);
applicationContext.registerSingleton(new DefaultFlowExecutor(flowListeners, this.flowRepository));
this.executionQueue.receive(MemoryExecutor.class, this::executionQueue);
this.workerTaskResultQueue.receive(MemoryExecutor.class, this::workerTaskResultQueue);
this.killQueue.receive(MemoryExecutor.class, this::killQueue);