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:



396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/temporalio/client/schedule.rb', line 396

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.



396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/temporalio/client/schedule.rb', line 396

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.



396
397
398
399
400
401
402
403
404
405
406
407
# File 'lib/temporalio/client/schedule.rb', line 396

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