Class: Temporalio::Client::Schedule
- Inherits:
-
Data
- Object
- Data
- Temporalio::Client::Schedule
- Defined in:
- lib/temporalio/client/schedule.rb,
lib/temporalio/client/schedule.rb
Overview
A schedule for periodically running an action.
Defined Under Namespace
Modules: Action, ActionExecution, List, OverlapPolicy Classes: ActionResult, Backfill, Description, Info, Policy, Range, Spec, State, Update
Instance Attribute Summary collapse
-
#action ⇒ Action
Action taken when scheduled.
-
#policy ⇒ Policy
Schedule policies.
-
#spec ⇒ Spec
When the action is taken.
-
#state ⇒ State
State of the schedule.
Instance Method Summary collapse
-
#initialize(action:, spec:, policy: Policy.new, state: State.new) ⇒ Schedule
constructor
Create schedule.
Constructor Details
Instance Attribute Details
#action ⇒ Action
Returns Action taken when scheduled.
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def action @action end |
#policy ⇒ Policy
Returns Schedule policies.
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def policy @policy end |
#spec ⇒ Spec
Returns When the action is taken.
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def spec @spec end |
#state ⇒ State
Returns State of the schedule.
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def state @state end |