Class JdbcSchedulerTriggerState

java.lang.Object
io.kestra.jdbc.runner.JdbcSchedulerTriggerState
All Implemented Interfaces:
io.kestra.core.schedulers.SchedulerTriggerStateInterface

@Singleton @JdbcRunnerEnabled public class JdbcSchedulerTriggerState extends Object implements io.kestra.core.schedulers.SchedulerTriggerStateInterface
  • Field Details

  • Constructor Details

  • Method Details

    • initTriggerEvaluateRunning

      @PostConstruct public void initTriggerEvaluateRunning()
    • findLast

      public Optional<io.kestra.core.models.triggers.Trigger> findLast(io.kestra.core.models.triggers.TriggerContext context)
      Specified by:
      findLast in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • findAllForAllTenants

      public List<io.kestra.core.models.triggers.Trigger> findAllForAllTenants()
      Specified by:
      findAllForAllTenants in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • save

      public io.kestra.core.models.triggers.Trigger save(io.kestra.core.models.triggers.Trigger trigger, io.kestra.core.schedulers.ScheduleContextInterface scheduleContextInterface)
      Specified by:
      save in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • create

      public io.kestra.core.models.triggers.Trigger create(io.kestra.core.models.triggers.Trigger trigger)
      Specified by:
      create in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • update

      public io.kestra.core.models.triggers.Trigger update(io.kestra.core.models.triggers.Trigger trigger)
      Specified by:
      update in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • updateExecution

      public io.kestra.core.models.triggers.Trigger updateExecution(io.kestra.core.models.triggers.Trigger trigger)
    • update

      public io.kestra.core.models.triggers.Trigger update(io.kestra.core.models.flows.Flow flow, io.kestra.core.models.triggers.AbstractTrigger abstractTrigger, io.kestra.core.models.conditions.ConditionContext conditionContext)
      Specified by:
      update in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • findByNextExecutionDateReadyForAllTenants

      public List<io.kestra.core.models.triggers.Trigger> findByNextExecutionDateReadyForAllTenants(ZonedDateTime now, io.kestra.core.schedulers.ScheduleContextInterface scheduleContext)
      Specified by:
      findByNextExecutionDateReadyForAllTenants in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • findByNextExecutionDateReadyForGivenFlows

      public List<io.kestra.core.models.triggers.Trigger> findByNextExecutionDateReadyForGivenFlows(List<io.kestra.core.models.flows.Flow> flows, ZonedDateTime now, io.kestra.core.schedulers.ScheduleContextInterface scheduleContext)
      Specified by:
      findByNextExecutionDateReadyForGivenFlows in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
    • unlock

      public void unlock(io.kestra.core.models.triggers.Trigger trigger)
      Specified by:
      unlock in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface