1919require 'temporalio/converters'
2020require 'temporalio/error'
2121require 'temporalio/internal/client/implementation'
22+ require 'temporalio/priority'
2223require 'temporalio/retry_policy'
2324require 'temporalio/runtime'
2425require 'temporalio/search_attributes'
@@ -217,6 +218,9 @@ def operator_service
217218 # with `cron_schedule`.
218219 # @param request_eager_start [Boolean] Potentially reduce the latency to start this workflow by encouraging the
219220 # server to start it on a local worker running with this same client. This is currently experimental.
221+ # @param versioning_override [VersioningOverride, nil] Override the version of the workflow.
222+ # This is currently experimental.
223+ # @param priority [Priority] Priority of the workflow. This is currently experimental.
220224 # @param rpc_options [RPCOptions, nil] Advanced RPC options.
221225 #
222226 # @return [WorkflowHandle] A workflow handle to the started workflow.
@@ -241,6 +245,7 @@ def start_workflow(
241245 start_delay : nil ,
242246 request_eager_start : false ,
243247 versioning_override : nil ,
248+ priority : Priority . default ,
244249 rpc_options : nil
245250 )
246251 @impl . start_workflow ( Interceptor ::StartWorkflowInput . new (
@@ -263,6 +268,7 @@ def start_workflow(
263268 request_eager_start :,
264269 headers : { } ,
265270 versioning_override :,
271+ priority :,
266272 rpc_options :
267273 ) )
268274 end
@@ -295,6 +301,9 @@ def start_workflow(
295301 # with `cron_schedule`.
296302 # @param request_eager_start [Boolean] Potentially reduce the latency to start this workflow by encouraging the
297303 # server to start it on a local worker running with this same client. This is currently experimental.
304+ # @param versioning_override [VersioningOverride, nil] Override the version of the workflow.
305+ # This is currently experimental.
306+ # @param priority [Priority] Priority for the workflow. This is currently experimental.
298307 # @param rpc_options [RPCOptions, nil] Advanced RPC options.
299308 #
300309 # @return [Object] Successful result of the workflow.
@@ -320,6 +329,7 @@ def execute_workflow(
320329 start_delay : nil ,
321330 request_eager_start : false ,
322331 versioning_override : nil ,
332+ priority : Priority . default ,
323333 follow_runs : true ,
324334 rpc_options : nil
325335 )
@@ -342,6 +352,7 @@ def execute_workflow(
342352 start_delay :,
343353 request_eager_start :,
344354 versioning_override :,
355+ priority :,
345356 rpc_options :
346357 )
347358 follow_runs ? handle . result : handle
0 commit comments