@@ -33,7 +33,6 @@ class Worker
3333 :activity_executors ,
3434 :workflow_executor ,
3535 :interceptors ,
36- :build_id ,
3736 :identity ,
3837 :logger ,
3938 :max_cached_workflows ,
@@ -47,7 +46,6 @@ class Worker
4746 :max_activities_per_second ,
4847 :max_task_queue_activities_per_second ,
4948 :graceful_shutdown_period ,
50- :use_worker_versioning ,
5149 :disable_eager_activity_execution ,
5250 :illegal_workflow_calls ,
5351 :workflow_failure_exception_types ,
@@ -297,10 +295,6 @@ def self.default_illegal_workflow_calls
297295 # @param interceptors [Array<Interceptor::Activity, Interceptor::Workflow>] Interceptors specific to this worker.
298296 # Note, interceptors set on the client that include the {Interceptor::Activity} or {Interceptor::Workflow} module
299297 # are automatically included here, so no need to specify them again.
300- # @param build_id [String] Unique identifier for the current runtime. This is best set as a unique value
301- # representing all code and should change only when code does. This can be something like a git commit hash. If
302- # unset, default is hash of known Ruby code.
303- # Exclusive with `deployment_options`.
304298 # @param identity [String, nil] Override the identity for this worker. If unset, client identity is used.
305299 # @param logger [Logger] Logger to override client logger with. Default is the client logger.
306300 # @param max_cached_workflows [Integer] Number of workflows held in cache for use by sticky task queue. If set to 0,
@@ -329,10 +323,6 @@ def self.default_illegal_workflow_calls
329323 # multiple workers on the same queue have different values set, they will thrash with the last poller winning.
330324 # @param graceful_shutdown_period [Float] Amount of time after shutdown is called that activities are given to
331325 # complete before their tasks are canceled.
332- # @param use_worker_versioning [Boolean] If true, the `build_id` argument must be specified, and this worker opts
333- # into the worker versioning feature. This ensures it only receives workflow tasks for workflows which it claims
334- # to be compatible with. For more information, see https://docs.temporal.io/workers#worker-versioning.
335- # Exclusive with `deployment_options`.
336326 # @param disable_eager_activity_execution [Boolean] If true, disables eager activity execution. Eager activity
337327 # execution is an optimization on some servers that sends activities back to the same worker as the calling
338328 # workflow if they can run there. This should be set to true for `max_task_queue_activities_per_second` to work
@@ -355,7 +345,6 @@ def self.default_illegal_workflow_calls
355345 # scheduler will fail. Instead of setting this to true, users are encouraged to use {Workflow::Unsafe.io_enabled}
356346 # with a block for narrower enabling of IO.
357347 # @param deployment_options [DeploymentOptions, nil] Deployment options for the worker.
358- # Exclusive with `build_id` and `use_worker_versioning`.
359348 # WARNING: This is an experimental feature and may change in the future.
360349 # @param debug_mode [Boolean] If true, deadlock detection is disabled. Deadlock detection will fail workflow tasks
361350 # if they block the thread for too long. This defaults to true if the `TEMPORAL_DEBUG` environment variable is
@@ -369,7 +358,6 @@ def initialize(
369358 activity_executors : ActivityExecutor . defaults ,
370359 workflow_executor : WorkflowExecutor ::ThreadPool . default ,
371360 interceptors : [ ] ,
372- build_id : Worker . default_build_id ,
373361 identity : nil ,
374362 logger : client . options . logger ,
375363 max_cached_workflows : 1000 ,
@@ -383,7 +371,6 @@ def initialize(
383371 max_activities_per_second : nil ,
384372 max_task_queue_activities_per_second : nil ,
385373 graceful_shutdown_period : 0 ,
386- use_worker_versioning : false ,
387374 disable_eager_activity_execution : false ,
388375 illegal_workflow_calls : Worker . default_illegal_workflow_calls ,
389376 workflow_failure_exception_types : [ ] ,
@@ -405,7 +392,6 @@ def initialize(
405392 activity_executors :,
406393 workflow_executor :,
407394 interceptors :,
408- build_id :,
409395 identity :,
410396 logger :,
411397 max_cached_workflows :,
@@ -419,7 +405,6 @@ def initialize(
419405 max_activities_per_second :,
420406 max_task_queue_activities_per_second :,
421407 graceful_shutdown_period :,
422- use_worker_versioning :,
423408 disable_eager_activity_execution :,
424409 illegal_workflow_calls :,
425410 workflow_failure_exception_types :,
@@ -436,7 +421,7 @@ def initialize(
436421 # Preload workflow definitions and some workflow settings for the bridge
437422 workflow_definitions = Internal ::Worker ::WorkflowWorker . workflow_definitions (
438423 workflows ,
439- should_enforce_versioning_behavior :
424+ should_enforce_versioning_behavior
440425 )
441426 nondeterminism_as_workflow_fail , nondeterminism_as_workflow_fail_for_types =
442427 Internal ::Worker ::WorkflowWorker . bridge_workflow_failure_exception_type_options (
@@ -452,7 +437,7 @@ def initialize(
452437 namespace : client . namespace ,
453438 task_queue :,
454439 tuner : tuner . _to_bridge_options ,
455- build_id :,
440+ build_id : '' ,
456441 identity_override : identity ,
457442 max_cached_workflows :,
458443 max_concurrent_workflow_task_polls :,
@@ -467,7 +452,7 @@ def initialize(
467452 max_worker_activities_per_second : max_activities_per_second ,
468453 max_task_queue_activities_per_second :,
469454 graceful_shutdown_period :,
470- use_worker_versioning :,
455+ use_worker_versioning : false ,
471456 nondeterminism_as_workflow_fail :,
472457 nondeterminism_as_workflow_fail_for_types :,
473458 deployment_options : if deployment_options . nil?
0 commit comments