You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## What changed?
<!-- Describe what has changed in this PR -->
This is the implementation for the API change in
temporalio/api#359:
- added support for new WorkflowIDConflictPolicy
- `FAIL`
- `USE_EXISTING`
- `TERMINATE_EXISTING`
- set new field `Started` in response accordingly
- covering Start-Workflow and Signal-With-Start
- migrating WorkflowIDReusePolicy Terminate-If-Running to
WorkflowIDConflictPolicy Terminate-Existing
- disallowing using WorkflowIDReusePolicy Terminate-If-Running with any
WorkflowIDReusePolicy
## Why?
<!-- Tell your future self why have you made these changes -->
See temporalio/api#359
## How did you test it?
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
Existing + new tests for requirements mentioned above.
## Potential risks
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
Breaking existing usage - but the tests should have uncovered any
issues.
## Documentation
<!-- Have you made sure this change doesn't falsify anything currently
stated in `docs/`? If significant
new behavior is added, have you described that in `docs/`? -->
## Is hotfix candidate?
<!-- Is this PR a hotfix candidate or does it require a notification to
be sent to the broader community? (Yes/No) -->
Copy file name to clipboardExpand all lines: service/frontend/errors.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,7 @@ var (
83
83
errUseVersioningWithoutBuildId=serviceerror.NewInvalidArgument("WorkerVersionStamp must be present if UseVersioning is true.")
84
84
errUseVersioningWithoutNormalName=serviceerror.NewInvalidArgument("NormalName must be set on sticky queue if UseVersioning is true.")
85
85
errBuildIdTooLong=serviceerror.NewInvalidArgument("Build ID exceeds configured limit.workerBuildIdSize, use a shorter build ID.")
86
+
errIncompatibleIDReusePolicy=serviceerror.NewInvalidArgument("Invalid WorkflowIDReusePolicy: WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING cannot be used together with a WorkflowIDConflictPolicy.")
86
87
87
88
errUpdateMetaNotSet=serviceerror.NewInvalidArgument("Update meta is not set on request.")
88
89
errUpdateInputNotSet=serviceerror.NewInvalidArgument("Update input is not set on request.")
@@ -112,6 +113,7 @@ var (
112
113
errUnableToGetNamespaceInfoMessage="Unable to get namespace %v info with error: %v"
113
114
errUnableToCreateFrontendClientMessage="Unable to create frontend client with error: %v."
114
115
errTooManySearchAttributesMessage="Unable to create search attributes: cannot have more than %d search attribute of type %s."
116
+
errUnsupportedIDConflictPolicy="Invalid WorkflowIDConflictPolicy: %v is not supported for this operation."
115
117
116
118
errListNotAllowed=serviceerror.NewPermissionDenied("List is disabled on this namespace.", "")
117
119
errSchedulesNotAllowed=serviceerror.NewPermissionDenied("Schedules are disabled on this namespace.", "")
@@ -121,6 +123,7 @@ var (
121
123
errBatchOpsWorkflowFiltersNotAllowed=serviceerror.NewInvalidArgument("Workflow executions and visibility filter are both set on request. Only one of them is allowed.")
errWorkflowIdConflictPolicyNotAllowed=serviceerror.NewPermissionDenied("WorkflowIdConflictPolicy option is disabled on this namespace.", "")
124
127
errUpdateWorkflowExecutionAPINotAllowed=serviceerror.NewPermissionDenied("UpdateWorkflowExecution operation is disabled on this namespace.", "")
125
128
errUpdateWorkflowExecutionAsyncAcceptedNotAllowed=serviceerror.NewPermissionDenied("UpdateWorkflowExecution issued asynchronously and waiting on update accepted is disabled on this namespace", "")
126
129
errUpdateWorkflowExecutionAsyncAdmittedNotAllowed=serviceerror.NewPermissionDenied("UpdateWorkflowExecution issued asynchronously and waiting on update admitted is disabled on this namespace", "")
0 commit comments