Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,17 @@ public IExecutionResult executePipelineGraph(IPipelineExecutorContext pipelineEx
}

ICycleScheduler scheduler = CycleSchedulerFactory.create(context.getCycle());
long schedulerId = context.getCycle().getSchedulerId();
if (scheduler instanceof IEventListener) {
eventDispatcher.registerListener(context.getCycle().getSchedulerId(), (IEventListener) scheduler);
eventDispatcher.registerListener(schedulerId, (IEventListener) scheduler);
}

scheduler.init(context);
IExecutionResult result = scheduler.execute();
LOGGER.info("final result of pipeline is {}", result.getResult());
scheduler.close();
if (scheduler instanceof IEventListener) {
eventDispatcher.removeListener(((ExecutionGraphCycleScheduler) scheduler).getSchedulerId());
eventDispatcher.removeListener(schedulerId);
}
return result;
}
Expand Down
Loading