iron_titan 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fc14bc37352de43f3384a1729b20aeda4f82ab0
4
- data.tar.gz: bc01e83e44fa5b925d30d6f7f709474e25751abd
3
+ metadata.gz: b7c9388dbc96ca53f6fc4112c0d31abe26a4dfc5
4
+ data.tar.gz: c7a4845a7cd45f567f8745a126d9e2d52d7de2c5
5
5
  SHA512:
6
- metadata.gz: dacc3e156b517683aca3336f2c871fb50c4cf85427e52e8e98ce90f6c7a4e2f108e6e72588ae4fd96cecb75d730337d15a4e35f7b3dd14362a367f6ca9ca6c0a
7
- data.tar.gz: 2d59d1a408c3c48760ec5ee50451777f2447d905f6a24a373b6f8801895aea0bd67ba932949a8b1bb820c6966d13aeae0535cf0bf2d5ca1d4d4bf3f9ec27d17d
6
+ metadata.gz: abefa960d8f1eff606ca920fd4569cf29d5cac944c64a6e69d2f875c784ccfc2fdf318e53dd6de0cac1fbb74832280769e9b6779c6c7f554c6d04b13f57867c8
7
+ data.tar.gz: 522b3d48ac0c79d9468836847359dbc13cb56e3bb2af35dc125a42ed419252eb678999c54d03dd565639bb4a03e5efe85488ccf18b11772aa5f513e9aae2a79c
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -23,13 +23,16 @@ module IronTitan
23
23
  # Priority of the job. 3 levels from 0-2. Default 0.
24
24
  attr_accessor :priority
25
25
 
26
+ # Time in seconds to wait before next attempt. Default 60.
27
+ attr_accessor :retries_delay
28
+
26
29
  # Сorresponding error message, only when status=='error'.
27
30
  attr_accessor :error
28
31
 
29
32
  # Maximum runtime in seconds. If job runs for longer, it will be killed. Default 60 seconds.
30
33
  attr_accessor :timeout
31
34
 
32
- # Number of retries. Default 3.
35
+ # Max number of retries. A retry will be attempted if a task fails. Default 3. TODO: naming: retries or max_retries?
33
36
  attr_accessor :retries
34
37
 
35
38
  # Time when job completed, whether it was successul or failed.
@@ -63,6 +66,8 @@ module IronTitan
63
66
 
64
67
  :'priority' => :'priority',
65
68
 
69
+ :'retries_delay' => :'retries_delay',
70
+
66
71
  :'error' => :'error',
67
72
 
68
73
  :'timeout' => :'timeout',
@@ -92,6 +97,7 @@ module IronTitan
92
97
  :'image' => :'String',
93
98
  :'created_at' => :'DateTime',
94
99
  :'priority' => :'Integer',
100
+ :'retries_delay' => :'Integer',
95
101
  :'error' => :'String',
96
102
  :'timeout' => :'Integer',
97
103
  :'retries' => :'Integer',
@@ -125,6 +131,10 @@ module IronTitan
125
131
  self.priority = attributes[:'priority']
126
132
  end
127
133
 
134
+ if attributes[:'retries_delay']
135
+ self.retries_delay = attributes[:'retries_delay']
136
+ end
137
+
128
138
  if attributes[:'error']
129
139
  self.error = attributes[:'error']
130
140
  end
@@ -174,6 +184,7 @@ module IronTitan
174
184
  image == o.image &&
175
185
  created_at == o.created_at &&
176
186
  priority == o.priority &&
187
+ retries_delay == o.retries_delay &&
177
188
  error == o.error &&
178
189
  timeout == o.timeout &&
179
190
  retries == o.retries &&
@@ -193,7 +204,7 @@ module IronTitan
193
204
 
194
205
  # Calculate hash code according to all attributes.
195
206
  def hash
196
- [image, created_at, priority, error, timeout, retries, completed_at, delay, payload, name, started_at, id, status].hash
207
+ [image, created_at, priority, retries_delay, error, timeout, retries, completed_at, delay, payload, name, started_at, id, status].hash
197
208
  end
198
209
 
199
210
  # build the object from hash
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -32,9 +32,12 @@ module IronTitan
32
32
  # Priority of the job. 3 levels from 0-2. Default 0.
33
33
  attr_accessor :priority
34
34
 
35
- # Number of retries. Default 3.
35
+ # Max number of retries. A retry will be attempted if a task fails. Default 3. TODO: naming: retries or max_retries?
36
36
  attr_accessor :retries
37
37
 
38
+ # Time in seconds to wait before next attempt. Default 60.
39
+ attr_accessor :retries_delay
40
+
38
41
  # Attribute mapping from ruby-style variable name to JSON key.
39
42
  def self.attribute_map
40
43
  {
@@ -51,7 +54,9 @@ module IronTitan
51
54
 
52
55
  :'priority' => :'priority',
53
56
 
54
- :'retries' => :'retries'
57
+ :'retries' => :'retries',
58
+
59
+ :'retries_delay' => :'retries_delay'
55
60
 
56
61
  }
57
62
  end
@@ -65,7 +70,8 @@ module IronTitan
65
70
  :'delay' => :'Integer',
66
71
  :'timeout' => :'Integer',
67
72
  :'priority' => :'Integer',
68
- :'retries' => :'Integer'
73
+ :'retries' => :'Integer',
74
+ :'retries_delay' => :'Integer'
69
75
 
70
76
  }
71
77
  end
@@ -105,6 +111,10 @@ module IronTitan
105
111
  self.retries = attributes[:'retries']
106
112
  end
107
113
 
114
+ if attributes[:'retries_delay']
115
+ self.retries_delay = attributes[:'retries_delay']
116
+ end
117
+
108
118
  end
109
119
 
110
120
  # Check equality by comparing each attribute.
@@ -117,7 +127,8 @@ module IronTitan
117
127
  delay == o.delay &&
118
128
  timeout == o.timeout &&
119
129
  priority == o.priority &&
120
- retries == o.retries
130
+ retries == o.retries &&
131
+ retries_delay == o.retries_delay
121
132
  end
122
133
 
123
134
  # @see the `==` method
@@ -127,7 +138,7 @@ module IronTitan
127
138
 
128
139
  # Calculate hash code according to all attributes.
129
140
  def hash
130
- [name, image, payload, delay, timeout, priority, retries].hash
141
+ [name, image, payload, delay, timeout, priority, retries, retries_delay].hash
131
142
  end
132
143
 
133
144
  # build the object from hash
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -11,5 +11,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  =end
12
12
 
13
13
  module IronTitan
14
- VERSION = "0.0.4"
14
+ VERSION = "0.0.5"
15
15
  end
data/lib/iron_titan.rb CHANGED
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -62,6 +62,16 @@ describe 'Job' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "retries_delay"' do
66
+ it 'should work' do
67
+ # assertion here
68
+ # should be_a()
69
+ # should be_nil
70
+ # should ==
71
+ # should_not ==
72
+ end
73
+ end
74
+
65
75
  describe 'test attribute "error"' do
66
76
  it 'should work' do
67
77
  # assertion here
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@ Titan API
3
3
 
4
4
  The ultimate, language agnostic, container based job processing framework.
5
5
 
6
- OpenAPI spec version: 0.0.4
6
+ OpenAPI spec version: 0.0.5
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -102,5 +102,15 @@ describe 'NewJob' do
102
102
  end
103
103
  end
104
104
 
105
+ describe 'test attribute "retries_delay"' do
106
+ it 'should work' do
107
+ # assertion here
108
+ # should be_a()
109
+ # should be_nil
110
+ # should ==
111
+ # should_not ==
112
+ end
113
+ end
114
+
105
115
  end
106
116
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_titan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-04 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus