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
jobIdstring
Returns
GetAllAsync()
Returns all persisted schedule states.
Task<IReadOnlyList<FlowScheduleState>> GetAllAsync()
Returns
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
jobIdstring
Returns
SaveAsync(FlowScheduleState)
Inserts or replaces the schedule state for JobId.
Task SaveAsync(FlowScheduleState state)
Parameters
stateFlowScheduleState