From b54472ffb70f4f920fb3ff89d9b82226626fc936 Mon Sep 17 00:00:00 2001 From: Stephan Behnke Date: Fri, 17 Jan 2025 10:18:38 -0800 Subject: [PATCH] add note --- service/history/api/startworkflow/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/history/api/startworkflow/api.go b/service/history/api/startworkflow/api.go index 3c29983aa3a..848b2ad7e36 100644 --- a/service/history/api/startworkflow/api.go +++ b/service/history/api/startworkflow/api.go @@ -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.