Class: Temporalio::Worker::Tuner::SlotSupplier::Custom::ReserveContext

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/worker/tuner.rb

Overview

Context provided for slot reservation on custom slot supplier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#slot_typeObject (readonly)

Returns the value of attribute slot_type

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Object)

    the current value of 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_queueObject (readonly)

Returns the value of attribute task_queue

Returns:

  • (Object)

    the current value of 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_idObject (readonly)

Returns the value of attribute worker_build_id

Returns:

  • (Object)

    the current value of 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_nameObject (readonly)

Returns the value of attribute worker_deployment_name

Returns:

  • (Object)

    the current value of 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_identityObject (readonly)

Returns the value of attribute worker_identity

Returns:

  • (Object)

    the current value of 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.

Returns:

  • (:workflow, :activity, :local_activity, :nexus)

    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.

Returns:

  • (Boolean)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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.

Returns:

  • (String)

    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?
)