Class: Temporalio::Client::Schedule::State
- Inherits:
-
Data
- Object
- Data
- Temporalio::Client::Schedule::State
- Defined in:
- lib/temporalio/client/schedule.rb,
lib/temporalio/client/schedule.rb
Overview
State of a schedule.
Instance Attribute Summary collapse
-
#limited_actions ⇒ Boolean
If true, remaining actions will be decremented for each action taken.
-
#note ⇒ String?
Human readable message for the schedule.
-
#paused ⇒ Boolean
Whether the schedule is paused.
-
#remaining_actions ⇒ Integer
Actions remaining on this schedule.
Instance Method Summary collapse
-
#initialize(note: nil, paused: false, limited_actions: false, remaining_actions: 0) ⇒ State
constructor
Create a schedule state.
Constructor Details
#initialize(note: nil, paused: false, limited_actions: false, remaining_actions: 0) ⇒ State
Create a schedule state.
809 810 811 812 813 814 815 816 |
# File 'lib/temporalio/client/schedule.rb', line 809 def initialize( note: nil, paused: false, limited_actions: false, remaining_actions: 0 ) super end |
Instance Attribute Details
#limited_actions ⇒ Boolean
Returns If true, remaining actions will be decremented for each action taken. On schedule create, this must be set to true if ‘remaining_actions` is non-zero and left false if `remaining_actions` is zero.
788 789 790 |
# File 'lib/temporalio/client/schedule.rb', line 788 def limited_actions @limited_actions end |
#note ⇒ String?
Returns Human readable message for the schedule. The system may overwrite this value on certain conditions like pause-on-failure.
788 789 790 |
# File 'lib/temporalio/client/schedule.rb', line 788 def note @note end |
#paused ⇒ Boolean
Returns Whether the schedule is paused.
788 789 790 |
# File 'lib/temporalio/client/schedule.rb', line 788 def paused @paused end |
#remaining_actions ⇒ Integer
Returns Actions remaining on this schedule. Once this number hits 0, no further actions are scheduled automatically.
788 789 790 |
# File 'lib/temporalio/client/schedule.rb', line 788 def remaining_actions @remaining_actions end |