@@ -100,6 +100,25 @@ public function DeprecateNamespace(V1\DeprecateNamespaceRequest $arg, ContextInt
100100 * @throws ServiceClientException
101101 */
102102 public function StartWorkflowExecution (V1 \StartWorkflowExecutionRequest $ arg , ContextInterface $ ctx = null ) : V1 \StartWorkflowExecutionResponse ;
103+ /**
104+ * ExecuteMultiOperation executes multiple operations within a single workflow.
105+ *
106+ * Operations are started atomically, meaning if *any* operation fails to be
107+ * started, none are,
108+ * and the request fails. Upon start, the API returns only when *all* operations
109+ * have a response.
110+ *
111+ * Upon failure, it returns `MultiOperationExecutionFailure` where the status code
112+ * equals the status code of the *first* operation that failed to be started.
113+ *
114+ * NOTE: Experimental API.
115+ *
116+ * @param V1\ExecuteMultiOperationRequest $arg
117+ * @param ContextInterface|null $ctx
118+ * @return V1\ExecuteMultiOperationResponse
119+ * @throws ServiceClientException
120+ */
121+ public function ExecuteMultiOperation (V1 \ExecuteMultiOperationRequest $ arg , ContextInterface $ ctx = null ) : V1 \ExecuteMultiOperationResponse ;
103122 /**
104123 * GetWorkflowExecutionHistory returns the history of specified workflow execution.
105124 * Fails with
@@ -731,8 +750,40 @@ public function UpdateWorkerBuildIdCompatibility(V1\UpdateWorkerBuildIdCompatibi
731750 */
732751 public function GetWorkerBuildIdCompatibility (V1 \GetWorkerBuildIdCompatibilityRequest $ arg , ContextInterface $ ctx = null ) : V1 \GetWorkerBuildIdCompatibilityResponse ;
733752 /**
734- * Allows updating the Build ID assignment and redirect rules for a given Task
735- * Queue.
753+ * Use this API to manage Worker Versioning Rules for a given Task Queue. There are
754+ * two types of
755+ * rules: Build ID Assignment rules and Compatible Build ID Redirect rules.
756+ *
757+ * Assignment rules determine how to assign new executions to a Build IDs. Their
758+ * primary
759+ * use case is to specify the latest Build ID but they have powerful features for
760+ * gradual rollout
761+ * of a new Build ID.
762+ *
763+ * Once a workflow execution is assigned to a Build ID and it completes its first
764+ * Workflow Task,
765+ * the workflow stays on the assigned Build ID regardless of changes in assignment
766+ * rules. This
767+ * eliminates the need for compatibility between versions when you only care about
768+ * using the new
769+ * version for new workflows and let existing workflows finish in their own
770+ * version.
771+ *
772+ * Activities, Child Workflows and Continue-as-New executions have the option to
773+ * inherit the
774+ * Build ID of their parent/previous workflow or use the latest assignment rules to
775+ * independently
776+ * select a Build ID.
777+ *
778+ * Redirect rules should only be used when you want to move workflows and
779+ * activities assigned to
780+ * one Build ID (source) to another compatible Build ID (target). You are
781+ * responsible to make sure
782+ * the target Build ID of a redirect rule is able to process event histories made
783+ * by the source
784+ * Build ID by using [Patching](https://docs.temporal.io/workflows#patching) or
785+ * other means.
786+ *
736787 * WARNING: Worker Versioning is not yet stable and the API and behavior may change
737788 * incompatibly.
738789 * (-- api-linter: core::0127::http-annotation=disabled
0 commit comments