Module: Temporal::Concerns::Executable

Included in:
Activity, Workflow
Defined in:
lib/temporal/concerns/executable.rb

Instance Method Summary collapse

Instance Method Details

#headers(*args) ⇒ Object



31
32
33
34
# File 'lib/temporal/concerns/executable.rb', line 31

def headers(*args)
  return @headers if args.empty?
  @headers = args.first
end

#namespace(*args) ⇒ Object



6
7
8
9
# File 'lib/temporal/concerns/executable.rb', line 6

def namespace(*args)
  return @namespace if args.empty?
  @namespace = args.first
end

#retry_policy(*args) ⇒ Object



20
21
22
23
24
# File 'lib/temporal/concerns/executable.rb', line 20

def retry_policy(*args)
  return @retry_policy if args.empty?
  @retry_policy = Temporal::RetryPolicy.new(args.first)
  @retry_policy.validate!
end

#task_list(*args) ⇒ Object



16
17
18
# File 'lib/temporal/concerns/executable.rb', line 16

def task_list(*args)
  task_queue(*args)
end

#task_queue(*args) ⇒ Object



11
12
13
14
# File 'lib/temporal/concerns/executable.rb', line 11

def task_queue(*args)
  return @task_queue if args.empty?
  @task_queue = args.first
end

#timeouts(*args) ⇒ Object



26
27
28
29
# File 'lib/temporal/concerns/executable.rb', line 26

def timeouts(*args)
  return @timeouts if args.empty?
  @timeouts = args.first
end