Class: Temporalio::Client::Schedule::List::Schedule

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

Overview

Details for a listed schedule.

Instance Attribute Summary collapse

Instance Attribute Details

#actionAction

Returns Action taken when scheduled.

Returns:

  • (Action)

    Action taken when scheduled.



918
919
920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/temporalio/client/schedule.rb', line 918

class Schedule
  # @!visibility private
  def initialize(raw_info:)
    raise 'Unknown action on schedule' unless raw_info.workflow_type

    # steep:ignore:start
    super(
      action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name),
      spec: Spec._from_proto(raw_info.spec),
      state: State.new(raw_info:)
    )
    # steep:ignore:end
  end
end

#specSpec

Returns When the action is taken.

Returns:

  • (Spec)

    When the action is taken.



918
919
920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/temporalio/client/schedule.rb', line 918

class Schedule
  # @!visibility private
  def initialize(raw_info:)
    raise 'Unknown action on schedule' unless raw_info.workflow_type

    # steep:ignore:start
    super(
      action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name),
      spec: Spec._from_proto(raw_info.spec),
      state: State.new(raw_info:)
    )
    # steep:ignore:end
  end
end

#stateState

Returns State of the schedule.

Returns:

  • (State)

    State of the schedule.



918
919
920
921
922
923
924
925
926
927
928
929
930
931
# File 'lib/temporalio/client/schedule.rb', line 918

class Schedule
  # @!visibility private
  def initialize(raw_info:)
    raise 'Unknown action on schedule' unless raw_info.workflow_type

    # steep:ignore:start
    super(
      action: Action::StartWorkflow.new(workflow: raw_info.workflow_type.name),
      spec: Spec._from_proto(raw_info.spec),
      state: State.new(raw_info:)
    )
    # steep:ignore:end
  end
end