Skip to content

Commit 8cdc26b

Browse files
authored
Add TerminateIfRunning IDReusePolicy (#486)
1 parent 56b5aea commit 8cdc26b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/main/idls

Submodule idls updated from 085f956 to 0037578

src/main/java/com/uber/cadence/client/WorkflowOptions.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,9 @@ public Builder setWorkflowId(String workflowId) {
124124
* conditions Cadence allows two workflows with the same domain and workflow id run
125125
* simultaneously.
126126
* <li>
127-
*
128-
* <ul>
129-
* AllowDuplicateFailedOnly is a default value. It means that workflow can start if
130-
* previous run failed or was cancelled or terminated.
127+
* <ul>
128+
* AllowDuplicateFailedOnly is a default value. It means that workflow can start if
129+
* previous run failed or was cancelled or terminated.
131130
* </ul>
132131
*
133132
* <ul>
@@ -137,6 +136,12 @@ public Builder setWorkflowId(String workflowId) {
137136
* <ul>
138137
* RejectDuplicate doesn't allow new run independently of the previous run closure status.
139138
* </ul>
139+
*
140+
* <ul>
141+
* TerminateIfRunning terminate current running workflow using the same workflow ID if exist,
142+
* then start a new run in one transaction
143+
* </ul>
144+
* </li>
140145
*/
141146
public Builder setWorkflowIdReusePolicy(WorkflowIdReusePolicy workflowIdReusePolicy) {
142147
this.workflowIdReusePolicy = workflowIdReusePolicy;

0 commit comments

Comments
 (0)