Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanos committed Jan 17, 2025
1 parent 9c80ce0 commit b54472f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/history/api/startworkflow/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ func (s *Starter) resolveDuplicateWorkflowID(
if s.followReusePolicyAfterConflictPolicyTerminate(s.namespace.Name().String()) {
// Exit and retry again from the top.
// By returning an Unavailable service error, the entire Start request will be retried.
// NOTE: This WorkflowIDReusePolicy cannot be RejectDuplicate as the frontend will reject that.
return nil, StartErr, serviceerror.NewUnavailable(fmt.Sprintf("Termination failed: %v", err))
}
// Fallthough to the logic for only creating the new workflow below.
Expand Down

0 comments on commit b54472f

Please sign in to comment.