aws-sdk-v1 1.60.1 → 1.60.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws/core/xml/frame.rb +1 -1
- data/lib/aws/simple_workflow/activity_type.rb +9 -0
- data/lib/aws/simple_workflow/activity_type_collection.rb +9 -0
- data/lib/aws/simple_workflow/decision_task.rb +14 -0
- data/lib/aws/simple_workflow/history_event.rb +4 -0
- data/lib/aws/simple_workflow/option_formatters.rb +4 -0
- data/lib/aws/simple_workflow/workflow_execution.rb +7 -0
- data/lib/aws/simple_workflow/workflow_type.rb +9 -0
- data/lib/aws/simple_workflow/workflow_type_collection.rb +9 -0
- data/lib/aws/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06464d74d3e1982ae72139e2dfc19f04ab2098e1
|
4
|
+
data.tar.gz: 90d337e053d0e6d88942e1f72f552948a2d5ac6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23f3004e6628d852c129d0d3e470bb7e19f31f6c4f9e6abadf08b0dc6fb71d279a5588514c20e4362e35649b7ec2ecfe3195851ab85fcb54fd4b791c66a59c4a
|
7
|
+
data.tar.gz: e5820699f0c04e2609aec0004c706e34a22f54d5048dd0f189c94e5a767e3c6acd38995140f81f82ab0820d70aa864a651cfe0390890953a701d3b4a6c7c84eb
|
data/lib/aws/core/xml/frame.rb
CHANGED
@@ -232,7 +232,7 @@ module AWS
|
|
232
232
|
if @text.tr(*TRANSLATE_DIGITS) == EASY_FORMAT
|
233
233
|
parts = @text.tr(*DATE_PUNCTUATION).chop.split.map {|p| p.to_i }
|
234
234
|
milliseconds = parts.pop
|
235
|
-
parts[-1] = parts[-1] +
|
235
|
+
parts[-1] = parts[-1] + Rational(milliseconds, 1000) #Ruby 1.8.7 compatibility
|
236
236
|
klass.send(parts_constructor, *parts)
|
237
237
|
else
|
238
238
|
# fallback in case we have to handle another date format
|
@@ -61,6 +61,11 @@ module AWS
|
|
61
61
|
# registration. This default task list is used if a task list is
|
62
62
|
# not provided when a task is scheduled.
|
63
63
|
#
|
64
|
+
# @attr_reader [Integer,nil] default_task_priority
|
65
|
+
# The default priority specified for this activity type at registration.
|
66
|
+
# This default task priority is used if a task priority is not provided
|
67
|
+
# when a task is scheduled.
|
68
|
+
#
|
64
69
|
# @attr_reader [Integer,:none,nil] default_task_schedule_to_close_timeout
|
65
70
|
# The default maximum duration specified when registering the
|
66
71
|
# activity type, for tasks of this activity type. You can override
|
@@ -99,6 +104,10 @@ module AWS
|
|
99
104
|
translates_output {|v| v['name'] }
|
100
105
|
end
|
101
106
|
|
107
|
+
config_attribute :default_task_priority do
|
108
|
+
translates_output {|v| v.to_i }
|
109
|
+
end
|
110
|
+
|
102
111
|
config_attribute :default_task_schedule_to_close_timeout, :duration => true
|
103
112
|
|
104
113
|
config_attribute :default_task_schedule_to_start_timeout, :duration => true
|
@@ -42,6 +42,11 @@ module AWS
|
|
42
42
|
# This default task list is used if a task list is not provided
|
43
43
|
# when a task is scheduled.
|
44
44
|
#
|
45
|
+
# @option options [Integer] :default_task_priority (nil) Specifies
|
46
|
+
# the default task priority to use for scheduling tasks for this
|
47
|
+
# activity type. This default is used only if a task priority is
|
48
|
+
# not provided when a task is scheduled.
|
49
|
+
#
|
45
50
|
# @option options [Integer,:none] :default_task_schedule_to_close_timeout (nil)
|
46
51
|
# The value should be a number of seconds (integer) or the symbol
|
47
52
|
# `:none` (implying no timeout).
|
@@ -77,6 +82,10 @@ module AWS
|
|
77
82
|
:default_task_schedule_to_start_timeout,
|
78
83
|
:default_task_start_to_close_timeout)
|
79
84
|
|
85
|
+
if priority = options[:default_task_priority]
|
86
|
+
options[:default_task_priority] = priority.to_s
|
87
|
+
end
|
88
|
+
|
80
89
|
if task_list = options[:default_task_list]
|
81
90
|
options[:default_task_list] = { :name => task_list.to_s }
|
82
91
|
end
|
@@ -251,6 +251,11 @@ module AWS
|
|
251
251
|
# the activity task. If not specified, the default task list
|
252
252
|
# registered with the activity type will be used.
|
253
253
|
#
|
254
|
+
# @option options [Integer] :task_priority (nil)
|
255
|
+
# If set, specifies the value of the task priority at which to
|
256
|
+
# schedule the activity task. If not specified, the default task
|
257
|
+
# priority registered with the activity type will be used.
|
258
|
+
#
|
254
259
|
# @return [nil]
|
255
260
|
#
|
256
261
|
def schedule_activity_task activity_type, options = {}
|
@@ -281,6 +286,10 @@ module AWS
|
|
281
286
|
:schedule_to_start_timeout,
|
282
287
|
:start_to_close_timeout)
|
283
288
|
|
289
|
+
if priority = options[:task_priority]
|
290
|
+
options[:task_priority] = priority.to_s
|
291
|
+
end
|
292
|
+
|
284
293
|
if task_list = options[:task_list]
|
285
294
|
options[:task_list] = { :name => task_list }
|
286
295
|
end
|
@@ -397,6 +406,11 @@ module AWS
|
|
397
406
|
# workflow execution. This overrides the default task list specified
|
398
407
|
# when registering the workflow type.
|
399
408
|
#
|
409
|
+
# @option options [Integer] :task_priority (nil)
|
410
|
+
# The task priority to use for the decision tasks generated for this
|
411
|
+
# workflow execution. This overrides the default task priority specified
|
412
|
+
# when registering the workflow type.
|
413
|
+
#
|
400
414
|
# @option options [Integer,:none] :task_start_to_close_timeout (nil)
|
401
415
|
# Specifies the maximum duration of decision tasks for this
|
402
416
|
# workflow execution. This parameter overrides the default
|
@@ -164,6 +164,8 @@ module AWS
|
|
164
164
|
#
|
165
165
|
# * taskList is returned as a string, not a hash.
|
166
166
|
#
|
167
|
+
# * taskPriority is returned as an Integer, not a String.
|
168
|
+
#
|
167
169
|
class Attributes
|
168
170
|
|
169
171
|
# @api private
|
@@ -234,6 +236,8 @@ module AWS
|
|
234
236
|
value.to_s =~ /^\d+$/ ? value.to_i : value.downcase.to_sym
|
235
237
|
when 'taskList'
|
236
238
|
value['name']
|
239
|
+
when 'taskPriority'
|
240
|
+
value.to_i
|
237
241
|
when 'childPolicy'
|
238
242
|
value.downcase.to_sym
|
239
243
|
when 'activityType'
|
@@ -71,6 +71,10 @@ module AWS
|
|
71
71
|
:execution_start_to_close_timeout,
|
72
72
|
:task_start_to_close_timeout)
|
73
73
|
|
74
|
+
if priority = options[:task_priority]
|
75
|
+
options[:task_priority] = priority.to_s
|
76
|
+
end
|
77
|
+
|
74
78
|
if options.has_key?(:task_list)
|
75
79
|
options[:task_list] = { :name => options[:task_list].to_s }
|
76
80
|
end
|
@@ -35,6 +35,9 @@ module AWS
|
|
35
35
|
# @attr_reader [String] task_list The task list used for the decision
|
36
36
|
# tasks generated for this workflow execution.
|
37
37
|
#
|
38
|
+
# @attr_reader [String] task_priority The task priority used for the decision
|
39
|
+
# tasks generated for this workflow execution.
|
40
|
+
#
|
38
41
|
# @attr_reader [String] task_start_to_close_timeout The maximum duration
|
39
42
|
# allowed for decision tasks for this workflow execution.
|
40
43
|
#
|
@@ -87,6 +90,10 @@ module AWS
|
|
87
90
|
translates_output{|v| v['name'] }
|
88
91
|
end
|
89
92
|
|
93
|
+
config_attribute :task_priority do
|
94
|
+
translates_output{|v| v.to_i }
|
95
|
+
end
|
96
|
+
|
90
97
|
config_attribute :task_start_to_close_timeout, :duration => true
|
91
98
|
|
92
99
|
info_attribute :cancel_requested
|
@@ -71,6 +71,11 @@ module AWS
|
|
71
71
|
# the default task list to use for scheduling decision tasks for
|
72
72
|
# executions of this workflow type.
|
73
73
|
#
|
74
|
+
# @attr_reader [Integer,nil] default_task_priority Specifies the
|
75
|
+
# default task priority for this workflow type at registration.
|
76
|
+
# This default task priority is used if a task priority is not provided
|
77
|
+
# when a task is scheduled.
|
78
|
+
#
|
74
79
|
# @attr_reader [Integer,:none,nil] default_task_start_to_close_timeout
|
75
80
|
# The default maximum duration of decision tasks for this workflow type.
|
76
81
|
#
|
@@ -98,6 +103,10 @@ module AWS
|
|
98
103
|
translates_output {|v| v['name'] }
|
99
104
|
end
|
100
105
|
|
106
|
+
config_attribute :default_task_priority do
|
107
|
+
translates_output {|v| v.to_i }
|
108
|
+
end
|
109
|
+
|
101
110
|
config_attribute :default_task_start_to_close_timeout,
|
102
111
|
:duration => true
|
103
112
|
|
@@ -54,6 +54,11 @@ module AWS
|
|
54
54
|
# executions of this workflow type. This default is used only if
|
55
55
|
# a task list is not provided when starting the workflow execution.
|
56
56
|
#
|
57
|
+
# @option options [Integer] :default_task_priority (nil) Specifies
|
58
|
+
# the default task priority to use for scheduling decision tasks for
|
59
|
+
# executions of this workflow type. This default is used only if
|
60
|
+
# a task priority is not provided when starting the workflow execution.
|
61
|
+
#
|
57
62
|
# @option options [Integer,:none] :default_task_start_to_close_timeout (nil)
|
58
63
|
# The default maximum duration of decision tasks for this workflow type.
|
59
64
|
#
|
@@ -75,6 +80,10 @@ module AWS
|
|
75
80
|
:default_execution_start_to_close_timeout,
|
76
81
|
:default_task_start_to_close_timeout)
|
77
82
|
|
83
|
+
if priority = options[:default_task_priority]
|
84
|
+
options[:default_task_priority] = priority.to_s
|
85
|
+
end
|
86
|
+
|
78
87
|
if task_list = options[:default_task_list]
|
79
88
|
options[:default_task_list] = { :name => task_list.to_s }
|
80
89
|
end
|
data/lib/aws/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.60.
|
4
|
+
version: 1.60.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -631,7 +631,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
631
631
|
version: '0'
|
632
632
|
requirements: []
|
633
633
|
rubyforge_project:
|
634
|
-
rubygems_version: 2.
|
634
|
+
rubygems_version: 2.0.14
|
635
635
|
signing_key:
|
636
636
|
specification_version: 4
|
637
637
|
summary: AWS SDK for Ruby V1
|