Documentation

IdReusePolicy : int
in package

Defines how new runs of a workflow with a particular ID may or may not be allowed. Note that it is *never* valid to have two actively running instances of the same workflow id.

Tags
see
WorkflowIdReusePolicy

Table of Contents

Cases

AllowDuplicate  = 1
Allow starting a workflow execution using the same workflow id.
AllowDuplicateFailedOnly  = 2
Allow starting a workflow execution using the same workflow id, only when the last execution's final state is one of [terminated, cancelled, timed out, failed].
RejectDuplicate  = 3
Do not permit re-use of the workflow id for this workflow. Future start workflow requests could potentially change the policy, allowing re-use of the workflow id.
TerminateIfRunning  = 4
If a workflow is running using the same workflow ID, terminate it and start a new one.
Unspecified

Cases

AllowDuplicate

Allow starting a workflow execution using the same workflow id.

AllowDuplicateFailedOnly

Allow starting a workflow execution using the same workflow id, only when the last execution's final state is one of [terminated, cancelled, timed out, failed].

RejectDuplicate

Do not permit re-use of the workflow id for this workflow. Future start workflow requests could potentially change the policy, allowing re-use of the workflow id.

TerminateIfRunning

If a workflow is running using the same workflow ID, terminate it and start a new one.

If no running workflow, then the behavior is the same as ALLOW_DUPLICATE


        
On this page

Search results