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.FlowWithWorkerTriggerNextDate

    Nested 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

    Constructors
    Constructor
    Description
    JdbcScheduler(io.micronaut.context.ApplicationContext applicationContext, io.kestra.core.services.FlowListenersInterface flowListeners)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    void
    run()
     

    Methods inherited from class io.kestra.core.schedulers.AbstractScheduler

    close, close, getId, getSchedulable, getSchedulableNextDate, getState, getType, isReady, saveLastTriggerAndEmitExecution, schedulerTriggers, setState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class io.kestra.core.schedulers.AbstractScheduler
    • 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:
      handleNext in class io.kestra.core.schedulers.AbstractScheduler