Package io.kestra.runner.memory
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 -
Method Summary
Modifier and TypeMethodDescriptionio.kestra.core.models.triggers.Triggercreate(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.Triggersave(io.kestra.core.models.triggers.Trigger trigger, io.kestra.core.schedulers.ScheduleContextInterface scheduleContextInterface) io.kestra.core.models.triggers.Triggerupdate(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.Triggerupdate(io.kestra.core.models.triggers.Trigger trigger)
-
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:
findLastin interfaceio.kestra.core.schedulers.SchedulerTriggerStateInterface
-
findAllForAllTenants
- Specified by:
findAllForAllTenantsin interfaceio.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:
savein interfaceio.kestra.core.schedulers.SchedulerTriggerStateInterface
-
create
public io.kestra.core.models.triggers.Trigger create(io.kestra.core.models.triggers.Trigger trigger) - Specified by:
createin interfaceio.kestra.core.schedulers.SchedulerTriggerStateInterface
-
update
public io.kestra.core.models.triggers.Trigger update(io.kestra.core.models.triggers.Trigger trigger) - Specified by:
updatein interfaceio.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:
updatein interfaceio.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:
findByNextExecutionDateReadyForAllTenantsin interfaceio.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:
findByNextExecutionDateReadyForGivenFlowsin interfaceio.kestra.core.schedulers.SchedulerTriggerStateInterface
-