Table of Contents

Interface IFlowScheduleStateStore

Namespace
FlowOrchestrator.Core.Storage
Assembly
FlowOrchestrator.Core.dll

Persists per-job schedule overrides (pause state and cron expression overrides) so they survive process restarts when FlowSchedulerOptions.PersistOverrides is enabled.

public interface IFlowScheduleStateStore

Methods

DeleteAsync(string)

Removes the schedule state for the given job ID if it exists.

Task DeleteAsync(string jobId)

Parameters

jobId string

Returns

Task

GetAllAsync()

Returns all persisted schedule states.

Task<IReadOnlyList<FlowScheduleState>> GetAllAsync()

Returns

Task<IReadOnlyList<FlowScheduleState>>

GetAsync(string)

Returns the schedule state for the given Hangfire recurring job ID, or null if no override has been saved.

Task<FlowScheduleState?> GetAsync(string jobId)

Parameters

jobId string

Returns

Task<FlowScheduleState>

SaveAsync(FlowScheduleState)

Inserts or replaces the schedule state for JobId.

Task SaveAsync(FlowScheduleState state)

Parameters

state FlowScheduleState

Returns

Task