Skip to content

Commit d481995

Browse files
authored
Correctly pass through WorkflowIDReusePolicy on SignalWithStart API (#707)
Workflow client implementation does not pass on user specified WorkflowIDReusePolicy to Cadence server on SignalWithStart API call resulting in default policy 'WorkflowIDReusePolicyAllowDuplicate' to be used for all calls.
1 parent c99d7e5 commit d481995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/internal_workflow_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ func (wc *workflowClient) SignalWithStartWorkflow(ctx context.Context, workflowI
343343
RetryPolicy: convertRetryPolicy(options.RetryPolicy),
344344
CronSchedule: common.StringPtr(options.CronSchedule),
345345
Memo: memo,
346+
WorkflowIdReusePolicy: options.WorkflowIDReusePolicy.toThriftPtr(),
346347
}
347348

348349
var response *s.StartWorkflowExecutionResponse

0 commit comments

Comments
 (0)