-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy pathexecutable.rb
More file actions
39 lines (33 loc) · 803 Bytes
/
executable.rb
File metadata and controls
39 lines (33 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module Temporal
module Concerns
module Executable
def namespace(*args)
return @namespace if args.empty?
@namespace = args.first
end
def task_queue(*args)
return @task_queue if args.empty?
@task_queue = args.first
end
def task_list(*args)
task_queue(*args)
end
def retry_policy(*args)
return @retry_policy if args.empty?
@retry_policy = args.first
end
def timeouts(*args)
return @timeouts if args.empty?
@timeouts = args.first
end
def headers(*args)
return @headers if args.empty?
@headers = args.first
end
def priority(*args)
return @priority if args.empty?
@priority = args.first
end
end
end
end