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.


910
911
912
913
914
915
916
917
918
919
920
921
922
923
# File 'lib/temporalio/client/schedule.rb', line 910

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.


910
911
912
913
914
915
916
917
918
919
920
921
922
923
# File 'lib/temporalio/client/schedule.rb', line 910

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.


910
911
912
913
914
915
916
917
918
919
920
921
922
923
# File 'lib/temporalio/client/schedule.rb', line 910

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