Package io.kestra.jdbc.runner
Class JdbcScheduler
java.lang.Object
io.kestra.core.schedulers.AbstractScheduler
io.kestra.jdbc.runner.JdbcScheduler
- All Implemented Interfaces:
io.kestra.core.schedulers.Scheduler,io.kestra.core.server.Service,AutoCloseable,Runnable
@JdbcRunnerEnabled
@Singleton
public class JdbcScheduler
extends io.kestra.core.schedulers.AbstractScheduler
-
Nested Class Summary
Nested classes/interfaces inherited from class io.kestra.core.schedulers.AbstractScheduler
io.kestra.core.schedulers.AbstractScheduler.FlowWithTriggers, io.kestra.core.schedulers.AbstractScheduler.FlowWithWorkerTriggerNextDateNested classes/interfaces inherited from interface io.kestra.core.server.Service
io.kestra.core.server.Service.ServiceState, io.kestra.core.server.Service.ServiceType -
Field Summary
Fields inherited from class io.kestra.core.schedulers.AbstractScheduler
applicationContext, flowListeners, receiveCancellations, triggerState -
Constructor Summary
ConstructorsConstructorDescriptionJdbcScheduler(io.micronaut.context.ApplicationContext applicationContext, io.kestra.core.services.FlowListenersInterface flowListeners) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleNext(List<io.kestra.core.models.flows.Flow> flows, ZonedDateTime now, BiConsumer<List<io.kestra.core.models.triggers.Trigger>, io.kestra.core.schedulers.ScheduleContextInterface> consumer) voidrun()Methods inherited from class io.kestra.core.schedulers.AbstractScheduler
close, close, getId, getSchedulable, getSchedulableNextDate, getState, getType, isReady, saveLastTriggerAndEmitExecution, schedulerTriggers, setStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.server.Service
getMetrics, skipGracefulTermination, unwrap
-
Constructor Details
-
JdbcScheduler
@Inject public JdbcScheduler(io.micronaut.context.ApplicationContext applicationContext, io.kestra.core.services.FlowListenersInterface flowListeners)
-
-
Method Details
-
run
public void run() -
handleNext
public void handleNext(List<io.kestra.core.models.flows.Flow> flows, ZonedDateTime now, BiConsumer<List<io.kestra.core.models.triggers.Trigger>, io.kestra.core.schedulers.ScheduleContextInterface> consumer) - Specified by:
handleNextin classio.kestra.core.schedulers.AbstractScheduler
-