Method: Temporalio::Worker.default_deployment_options

Defined in:
lib/temporalio/worker.rb

.default_deployment_optionsDeploymentOptions

Returns Default deployment options, which does not use worker versioning or a deployment name, and sets the build id to the one from selfself.default_build_id.

Returns:

  • (DeploymentOptions)

    Default deployment options, which does not use worker versioning or a deployment name, and sets the build id to the one from selfself.default_build_id.



98
99
100
101
102
# File 'lib/temporalio/worker.rb', line 98

def self.default_deployment_options
  @default_deployment_options ||= DeploymentOptions.new(
    version: WorkerDeploymentVersion.new(deployment_name: '', build_id: Worker.default_build_id)
  )
end