Class: Temporalio::Client::Schedule::ActionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/temporalio/client/schedule.rb

Overview

Information about when an action took place.

Instance Attribute Summary collapse

Instance Attribute Details

#actionActionExecution

Returns Action that took place.

Returns:



420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/temporalio/client/schedule.rb', line 420

class ActionResult
  # @!visibility private
  def initialize(raw_result:)
    # steep:ignore:start
    super(
      scheduled_at: Internal::ProtoUtils.timestamp_to_time(raw_result.schedule_time),
      started_at: Internal::ProtoUtils.timestamp_to_time(raw_result.actual_time),
      action: ActionExecution::StartWorkflow.new(raw_execution: raw_result.start_workflow_result)
    )
    # steep:ignore:end
  end
end

#scheduled_atTime

Returns Scheduled time of the action including jitter.

Returns:

  • (Time)

    Scheduled time of the action including jitter.



420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/temporalio/client/schedule.rb', line 420

class ActionResult
  # @!visibility private
  def initialize(raw_result:)
    # steep:ignore:start
    super(
      scheduled_at: Internal::ProtoUtils.timestamp_to_time(raw_result.schedule_time),
      started_at: Internal::ProtoUtils.timestamp_to_time(raw_result.actual_time),
      action: ActionExecution::StartWorkflow.new(raw_execution: raw_result.start_workflow_result)
    )
    # steep:ignore:end
  end
end

#started_atTime

Returns When the action actually started.

Returns:

  • (Time)

    When the action actually started.



420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/temporalio/client/schedule.rb', line 420

class ActionResult
  # @!visibility private
  def initialize(raw_result:)
    # steep:ignore:start
    super(
      scheduled_at: Internal::ProtoUtils.timestamp_to_time(raw_result.schedule_time),
      started_at: Internal::ProtoUtils.timestamp_to_time(raw_result.actual_time),
      action: ActionExecution::StartWorkflow.new(raw_execution: raw_result.start_workflow_result)
    )
    # steep:ignore:end
  end
end