Table of Contents

Enum WorkflowIdConflictPolicy

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

Defines what to do when trying to start a workflow with the same workflow id as a running workflow. Note that it is never valid to have two actively running instances of the same workflow id.

See WorkflowIdReusePolicy for handling workflow id duplication with a closed workflow.

public enum WorkflowIdConflictPolicy

Fields

[OriginalName("WORKFLOW_ID_CONFLICT_POLICY_FAIL")] Fail = 1

Don't start a new workflow; instead return WorkflowExecutionAlreadyStartedFailure.

[OriginalName("WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING")] TerminateExisting = 3

Terminate the running workflow before starting a new one.

[OriginalName("WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED")] Unspecified = 0
[OriginalName("WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING")] UseExisting = 2

Don't start a new workflow; instead return a workflow handle for the running workflow.