Search in sources :

Example 6 with ScheduleRunner

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");
    }
}
Also used : ScheduleRunner(pipelite.runner.schedule.ScheduleRunner) Schedule(pipelite.Schedule)

Aggregations

ScheduleRunner (pipelite.runner.schedule.ScheduleRunner)6 Test (org.junit.jupiter.api.Test)2 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)2 Process (pipelite.process.Process)2 Stage (pipelite.stage.Stage)2 ZonedDateTime (java.time.ZonedDateTime)1 ArrayList (java.util.ArrayList)1 RegisteredPipeline (pipelite.RegisteredPipeline)1 Schedule (pipelite.Schedule)1 ProcessEntity (pipelite.entity.ProcessEntity)1 ScheduleEntity (pipelite.entity.ScheduleEntity)1 StageEntity (pipelite.entity.StageEntity)1 PipeliteProcessRetryException (pipelite.exception.PipeliteProcessRetryException)1 ConfigurableTestSchedule (pipelite.tester.pipeline.ConfigurableTestSchedule)1 SingleStageTestProcessConfiguration (pipelite.tester.process.SingleStageTestProcessConfiguration)1