Class MemorySchedulerTriggerState

java.lang.Object
io.kestra.runner.memory.MemorySchedulerTriggerState
All Implemented Interfaces:
io.kestra.core.schedulers.SchedulerTriggerStateInterface

@Singleton @MemoryQueueEnabled public class MemorySchedulerTriggerState extends Object implements io.kestra.core.schedulers.SchedulerTriggerStateInterface
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.kestra.core.models.triggers.Trigger
    create(io.kestra.core.models.triggers.Trigger trigger)
     
    List<io.kestra.core.models.triggers.Trigger>
     
    List<io.kestra.core.models.triggers.Trigger>
    findByNextExecutionDateReadyForAllTenants(ZonedDateTime now, io.kestra.core.schedulers.ScheduleContextInterface scheduleContext)
     
    List<io.kestra.core.models.triggers.Trigger>
    findByNextExecutionDateReadyForGivenFlows(List<io.kestra.core.models.flows.Flow> flows, ZonedDateTime now, io.kestra.core.schedulers.ScheduleContextInterface scheduleContext)
     
    Optional<io.kestra.core.models.triggers.Trigger>
    findLast(io.kestra.core.models.triggers.TriggerContext context)
     
    io.kestra.core.models.triggers.Trigger
    save(io.kestra.core.models.triggers.Trigger trigger, io.kestra.core.schedulers.ScheduleContextInterface scheduleContextInterface)
     
    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)
     
    io.kestra.core.models.triggers.Trigger
    update(io.kestra.core.models.triggers.Trigger trigger)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MemorySchedulerTriggerState

      public MemorySchedulerTriggerState()
  • Method Details

    • 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
    • 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) throws Exception
      Specified by:
      update in interface io.kestra.core.schedulers.SchedulerTriggerStateInterface
      Throws:
      Exception
    • 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