Skip to content

Commit

Permalink
improve wait workflow timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Feb 21, 2024
1 parent 055ed39 commit 6eb39ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/api/temporal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (t *temporalClient) StartWaitForStateCompletionWorkflow(
) (runId string, err error) {
workflowOptions := client.StartWorkflowOptions{
ID: options.ID,
WorkflowIDReusePolicy: enums.WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE, //ALLOW_DUPLICATE_FAILED_ONLY, // the workflow could be timeout, so we allow duplicate
WorkflowIDReusePolicy: enums.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY, // the workflow could be timeout, so we allow duplicate
TaskQueue: options.TaskQueue,
WorkflowExecutionTimeout: options.WorkflowExecutionTimeout,
}
Expand Down

0 comments on commit 6eb39ad

Please sign in to comment.