Class: Temporalio::Client::Schedule::Action::StartWorkflow

Inherits:
Data
  • Object
show all
Includes:
Temporalio::Client::Schedule::Action
Defined in:
lib/temporalio/client/schedule.rb,
lib/temporalio/client/schedule.rb

Overview

Schedule action to start a workflow.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#arg_hints ⇒ Array<Object>?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def arg_hints
  @arg_hints
end

#args ⇒ Array<Object>



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def args
  @args
end

#execution_timeout ⇒ Float?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def execution_timeout
  @execution_timeout
end

#headers ⇒ Hash<String, Object>?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def headers
  @headers
end

#id ⇒ String



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def id
  @id
end

#memo ⇒ Hash<String, Object>?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def memo
  @memo
end

#priority ⇒ Priority



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def priority
  @priority
end

#retry_policy ⇒ RetryPolicy?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def retry_policy
  @retry_policy
end

#run_timeout ⇒ Float?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def run_timeout
  @run_timeout
end

#search_attributes ⇒ SearchAttributes?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def search_attributes
  @search_attributes
end

#static_details ⇒ String?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def static_details
  @static_details
end

#static_summary ⇒ String?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def static_summary
  @static_summary
end

#task_queue ⇒ String



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def task_queue
  @task_queue
end

#task_timeout ⇒ Float?



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def task_timeout
  @task_timeout
end

#workflow ⇒ String



220
221
222
# File 'lib/temporalio/client/schedule.rb', line 220

def workflow
  @workflow
end

Class Method Details

._original_new ⇒ Object



224
# File 'lib/temporalio/client/schedule.rb', line 224

alias _original_new new

.new(workflow, *args, id:, task_queue:, static_summary: nil, static_details: nil, execution_timeout: nil, run_timeout: nil, task_timeout: nil, retry_policy: nil, memo: nil, search_attributes: nil, priority: Priority.default, arg_hints: nil, headers: nil) ⇒ Object

Create start-workflow schedule action.



247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
# File 'lib/temporalio/client/schedule.rb', line 247

def new(
  workflow,
  *args,
  id:,
  task_queue:,
  static_summary: nil,
  static_details: nil,
  execution_timeout: nil,
  run_timeout: nil,
  task_timeout: nil,
  retry_policy: nil,
  memo: nil,
  search_attributes: nil,
  priority: Priority.default,
  arg_hints: nil,
  headers: nil
)
  workflow, defn_arg_hints, =
    Workflow::Definition._workflow_type_and_hints_from_workflow_parameter(workflow)
  _original_new( # steep:ignore
    workflow:,
    args:,
    id:,
    task_queue:,
    static_summary:,
    static_details:,
    execution_timeout:,
    run_timeout:,
    task_timeout:,
    retry_policy:,
    memo:,
    search_attributes:,
    priority:,
    arg_hints: arg_hints || defn_arg_hints,
    headers:
  )
end