Interface IRecurringTriggerSync
- Namespace
- FlowOrchestrator.Core.Execution
- Assembly
- FlowOrchestrator.Core.dll
Synchronises the runtime scheduler's recurring jobs for a flow's cron triggers (e.g. after a pause/resume or cron override from the dashboard).
public interface IRecurringTriggerSync
Remarks
AddFlowOrchestrator registers the single runtime-agnostic implementation,
FlowOrchestrator.Core.Execution.RecurringTriggerSync, which resolves the effective cron (manifest, persisted
override, pause state) once and drives whichever IRecurringTriggerDispatcher
the configured runtime provides. Runtimes no longer implement this interface themselves.
Methods
SyncTriggersAsync(Guid, bool, CancellationToken)
Re-evaluates and updates all recurring jobs for the given flow,
applying any persisted schedule overrides from IFlowScheduleStateStore.
Task SyncTriggersAsync(Guid flowId, bool isEnabled, CancellationToken cancellationToken = default)
Parameters
flowIdGuidThe flow whose triggers should be synchronised.
isEnabledboolWhen false, all recurring jobs for this flow are removed.
cancellationTokenCancellationTokenCancels the schedule-state lookups.
Returns
- Task
A task that completes once every cron trigger of the flow has been registered or removed.