Class: Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext
- Inherits:
-
Data
- Object
- Data
- Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext
- Defined in:
- lib/temporalio/worker/tuner.rb
Overview
Context provided for slot reservation on custom slot supplier.
Instance Attribute Summary collapse
-
#slot_type ⇒ Object
readonly
Returns the value of attribute slot_type.
-
#sticky? ⇒ Object
readonly
Returns the value of attribute sticky?.
-
#task_queue ⇒ Object
readonly
Returns the value of attribute task_queue.
-
#worker_build_id ⇒ Object
readonly
Returns the value of attribute worker_build_id.
-
#worker_deployment_name ⇒ Object
readonly
Returns the value of attribute worker_deployment_name.
-
#worker_identity ⇒ Object
readonly
Returns the value of attribute worker_identity.
Instance Method Summary collapse
-
#slot_type(value) ⇒ :workflow, ...
readonly
Slot type.
-
#sticky?=(value) ⇒ Boolean
readonly
True if this reservation is for a sticky workflow task.
-
#task_queue(value) ⇒ String
readonly
Task queue.
-
#worker_build_id(value) ⇒ String
readonly
Worker build ID or empty string if not applicable.
-
#worker_deployment_name(value) ⇒ String
readonly
Worker deployment name or empty string if not applicable.
-
#worker_identity(value) ⇒ String
readonly
Worker identity.
Instance Attribute Details
#slot_type ⇒ Object (readonly)
Returns the value of attribute slot_type
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#sticky? ⇒ Object (readonly)
Returns the value of attribute sticky?
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#task_queue ⇒ Object (readonly)
Returns the value of attribute task_queue
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_build_id ⇒ Object (readonly)
Returns the value of attribute worker_build_id
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_deployment_name ⇒ Object (readonly)
Returns the value of attribute worker_deployment_name
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_identity ⇒ Object (readonly)
Returns the value of attribute worker_identity
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
Instance Method Details
#slot_type=(value) ⇒ :workflow, ... (readonly)
Returns Slot type.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#sticky?=(value) ⇒ Boolean (readonly)
Returns True if this reservation is for a sticky workflow task.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#task_queue=(value) ⇒ String (readonly)
Returns Task queue.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_build_id=(value) ⇒ String (readonly)
Returns Worker build ID or empty string if not applicable.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_deployment_name=(value) ⇒ String (readonly)
Returns Worker deployment name or empty string if not applicable.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |
#worker_identity=(value) ⇒ String (readonly)
Returns Worker identity.
82 83 84 85 86 87 88 89 |
# File 'lib/temporalio/worker/tuner.rb', line 82 ReserveContext = Data.define( :slot_type, :task_queue, :worker_identity, :worker_deployment_name, :worker_build_id, :sticky? ) |