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
#initialize(action:, spec:, policy: Policy.new, state: State.new) ⇒ Schedule
Create schedule
45 46 47 |
# File 'lib/temporalio/client/schedule.rb', line 45 def initialize(action:, spec:, policy: Policy.new, state: State.new) super end |
Instance Attribute Details
#action ⇒ Action
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def action @action end |
#policy ⇒ Policy
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def policy @policy end |
#spec ⇒ Spec
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def spec @spec end |
#state ⇒ State
28 29 30 |
# File 'lib/temporalio/client/schedule.rb', line 28 def state @state end |