Class: Temporalio::Internal::Worker::WorkflowInstance::HandlerExecution

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/internal/worker/workflow_instance/handler_execution.rb

Overview

Representation of a currently-executing handler. Used to track whether any handlers are still running and warn on workflow complete as needed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, update_id:, unfinished_policy:) ⇒ HandlerExecution

Returns a new instance of HandlerExecution.



12
13
14
15
16
17
18
19
20
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 12

def initialize(
  name:,
  update_id:,
  unfinished_policy:
)
  @name = name
  @update_id = update_id
  @unfinished_policy = unfinished_policy
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10

def name
  @name
end

#unfinished_policyObject (readonly)

Returns the value of attribute unfinished_policy.



10
11
12
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10

def unfinished_policy
  @unfinished_policy
end

#update_idObject (readonly)

Returns the value of attribute update_id.



10
11
12
# File 'lib/temporalio/internal/worker/workflow_instance/handler_execution.rb', line 10

def update_id
  @update_id
end