class Temporal::Workflow::ExecutionInfo

Constants

API_STATUS_MAP
CANCELED_STATUS
COMPLETED_STATUS
CONTINUED_AS_NEW_STATUS
FAILED_STATUS
RUNNING_STATUS
TERMINATED_STATUS
TIMED_OUT_STATUS
VALID_STATUSES

Public Class Methods

generate_from(response) click to toggle source
# File lib/temporal/workflow/execution_info.rb, line 32
def self.generate_from(response)
  new(
    workflow: response.type.name,
    workflow_id: response.execution.workflow_id,
    run_id: response.execution.run_id,
    start_time: response.start_time&.to_time,
    close_time: response.close_time&.to_time,
    status: API_STATUS_MAP.fetch(response.status),
    history_length: response.history_length,
  ).freeze
end