use of pipelite.runner.schedule.ScheduleRunner in project pipelite by enasequence.
the class ProcessRunnerPoolManager method _createScheduleRunner.
/**
* Should not be called directly. Called by {@link #createPools()}.
*/
public void _createScheduleRunner() {
if (state != State.STOPPED) {
log.atWarning().log("Failed to create schedule runners manager state is not stopped");
return;
}
if (pipeliteServices.registeredPipeline().isSchedules()) {
ScheduleRunner scheduleRunner = createScheduler(pipeliteServices.registeredPipeline().getRegisteredPipelines(Schedule.class));
log.atInfo().log("Creating schedule runner");
pipeliteServices.runner().setScheduleRunner(scheduleRunner);
pools.add(scheduleRunner);
log.atInfo().log("Created schedule runner");
}
}
Aggregations