Class: Temporalio::Client::Schedule

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#actionAction



28
29
30
# File 'lib/temporalio/client/schedule.rb', line 28

def action
  @action
end

#policyPolicy



28
29
30
# File 'lib/temporalio/client/schedule.rb', line 28

def policy
  @policy
end

#specSpec



28
29
30
# File 'lib/temporalio/client/schedule.rb', line 28

def spec
  @spec
end

#stateState



28
29
30
# File 'lib/temporalio/client/schedule.rb', line 28

def state
  @state
end