Table of Contents

Enum ScheduleOverlapPolicy

Namespace
Temporalio.Api.Enums.V1
Assembly
Temporalio.dll

ScheduleOverlapPolicy controls what happens when a workflow would be started by a schedule, and is already running.

public enum ScheduleOverlapPolicy

Fields

[OriginalName("SCHEDULE_OVERLAP_POLICY_ALLOW_ALL")] AllowAll = 6

SCHEDULE_OVERLAP_POLICY_ALLOW_ALL means start any number of concurrent workflows. Note that with this policy, last completion result and last failure will not be available since workflows are not sequential.

[OriginalName("SCHEDULE_OVERLAP_POLICY_BUFFER_ALL")] BufferAll = 3

SCHEDULE_OVERLAP_POLICY_BUFFER_ALL means buffer up any number of starts to all happen sequentially, immediately after the running workflow completes.

[OriginalName("SCHEDULE_OVERLAP_POLICY_BUFFER_ONE")] BufferOne = 2

SCHEDULE_OVERLAP_POLICY_BUFFER_ONE means start the workflow again soon as the current one completes, but only buffer one start in this way. If another start is supposed to happen when the workflow is running, and one is already buffered, then only the first one will be started after the running workflow finishes.

[OriginalName("SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER")] CancelOther = 4

SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER means that if there is another workflow running, cancel it, and start the new one after the old one completes cancellation.

[OriginalName("SCHEDULE_OVERLAP_POLICY_SKIP")] Skip = 1

SCHEDULE_OVERLAP_POLICY_SKIP (default) means don't start anything. When the workflow completes, the next scheduled event after that time will be considered.

[OriginalName("SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER")] TerminateOther = 5

SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER means that if there is another workflow running, terminate it and start the new one immediately.

[OriginalName("SCHEDULE_OVERLAP_POLICY_UNSPECIFIED")] Unspecified = 0