iron_titan 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d868e4b29cacf53f0183e63cc87c544f8d5957f
4
- data.tar.gz: c259d7589a7bbf98a5bea4095473434ae5c83ef3
3
+ metadata.gz: 6fc14bc37352de43f3384a1729b20aeda4f82ab0
4
+ data.tar.gz: bc01e83e44fa5b925d30d6f7f709474e25751abd
5
5
  SHA512:
6
- metadata.gz: 97eadd6329d49d369ca5c166dc2b0ce8b229dd17c1f430e84042803678fbc6f216e96775744bc71648aa54943bc4ae1057ea8bf974f88585703d399c56c6d27a
7
- data.tar.gz: b4bbe3078085c667306c595dd6aeeecfd0148e9b5bb42fc6c16f5a4ed44690324bd8645b6a82cd5dff9b3a603838504b708418acc2bc90e12b97fe7fb95d09ad
6
+ metadata.gz: dacc3e156b517683aca3336f2c871fb50c4cf85427e52e8e98ce90f6c7a4e2f108e6e72588ae4fd96cecb75d730337d15a4e35f7b3dd14362a367f6ca9ca6c0a
7
+ data.tar.gz: 2d59d1a408c3c48760ec5ee50451777f2447d905f6a24a373b6f8801895aea0bd67ba932949a8b1bb820c6966d13aeae0535cf0bf2d5ca1d4d4bf3f9ec27d17d
@@ -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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -17,6 +17,18 @@ module IronTitan
17
17
  # Docker image to use for job.
18
18
  attr_accessor :image
19
19
 
20
+ # Time when job was submitted.
21
+ attr_accessor :created_at
22
+
23
+ # Priority of the job. 3 levels from 0-2. Default 0.
24
+ attr_accessor :priority
25
+
26
+ # Сorresponding error message, only when status=='error'.
27
+ attr_accessor :error
28
+
29
+ # Maximum runtime in seconds. If job runs for longer, it will be killed. Default 60 seconds.
30
+ attr_accessor :timeout
31
+
20
32
  # Number of retries. Default 3.
21
33
  attr_accessor :retries
22
34
 
@@ -32,21 +44,12 @@ module IronTitan
32
44
  # Docker image to use for job. Default is 'image'
33
45
  attr_accessor :name
34
46
 
35
- # Time when job was submitted.
36
- attr_accessor :created_at
37
-
38
47
  # Time when job started execution.
39
48
  attr_accessor :started_at
40
49
 
41
50
  # Unique identifier representing a specific job.
42
51
  attr_accessor :id
43
52
 
44
- # Сorresponding error message, only when status=='error'.
45
- attr_accessor :error
46
-
47
- # Maximum runtime in seconds. If job runs for longer, it will be killed. Default 60 seconds.
48
- attr_accessor :timeout
49
-
50
53
  # Status of job. One of: [pending, running, success, error, timeout]
51
54
  attr_accessor :status
52
55
 
@@ -56,6 +59,14 @@ module IronTitan
56
59
 
57
60
  :'image' => :'image',
58
61
 
62
+ :'created_at' => :'created_at',
63
+
64
+ :'priority' => :'priority',
65
+
66
+ :'error' => :'error',
67
+
68
+ :'timeout' => :'timeout',
69
+
59
70
  :'retries' => :'retries',
60
71
 
61
72
  :'completed_at' => :'completed_at',
@@ -66,16 +77,10 @@ module IronTitan
66
77
 
67
78
  :'name' => :'name',
68
79
 
69
- :'created_at' => :'created_at',
70
-
71
80
  :'started_at' => :'started_at',
72
81
 
73
82
  :'id' => :'id',
74
83
 
75
- :'error' => :'error',
76
-
77
- :'timeout' => :'timeout',
78
-
79
84
  :'status' => :'status'
80
85
 
81
86
  }
@@ -85,16 +90,17 @@ module IronTitan
85
90
  def self.swagger_types
86
91
  {
87
92
  :'image' => :'String',
93
+ :'created_at' => :'DateTime',
94
+ :'priority' => :'Integer',
95
+ :'error' => :'String',
96
+ :'timeout' => :'Integer',
88
97
  :'retries' => :'Integer',
89
98
  :'completed_at' => :'DateTime',
90
99
  :'delay' => :'Integer',
91
100
  :'payload' => :'String',
92
101
  :'name' => :'String',
93
- :'created_at' => :'DateTime',
94
102
  :'started_at' => :'DateTime',
95
103
  :'id' => :'String',
96
- :'error' => :'String',
97
- :'timeout' => :'Integer',
98
104
  :'status' => :'String'
99
105
 
100
106
  }
@@ -111,6 +117,22 @@ module IronTitan
111
117
  self.image = attributes[:'image']
112
118
  end
113
119
 
120
+ if attributes[:'created_at']
121
+ self.created_at = attributes[:'created_at']
122
+ end
123
+
124
+ if attributes[:'priority']
125
+ self.priority = attributes[:'priority']
126
+ end
127
+
128
+ if attributes[:'error']
129
+ self.error = attributes[:'error']
130
+ end
131
+
132
+ if attributes[:'timeout']
133
+ self.timeout = attributes[:'timeout']
134
+ end
135
+
114
136
  if attributes[:'retries']
115
137
  self.retries = attributes[:'retries']
116
138
  end
@@ -121,8 +143,6 @@ module IronTitan
121
143
 
122
144
  if attributes[:'delay']
123
145
  self.delay = attributes[:'delay']
124
- else
125
- self.delay = 0
126
146
  end
127
147
 
128
148
  if attributes[:'payload']
@@ -133,10 +153,6 @@ module IronTitan
133
153
  self.name = attributes[:'name']
134
154
  end
135
155
 
136
- if attributes[:'created_at']
137
- self.created_at = attributes[:'created_at']
138
- end
139
-
140
156
  if attributes[:'started_at']
141
157
  self.started_at = attributes[:'started_at']
142
158
  end
@@ -145,14 +161,6 @@ module IronTitan
145
161
  self.id = attributes[:'id']
146
162
  end
147
163
 
148
- if attributes[:'error']
149
- self.error = attributes[:'error']
150
- end
151
-
152
- if attributes[:'timeout']
153
- self.timeout = attributes[:'timeout']
154
- end
155
-
156
164
  if attributes[:'status']
157
165
  self.status = attributes[:'status']
158
166
  end
@@ -164,16 +172,17 @@ module IronTitan
164
172
  return true if self.equal?(o)
165
173
  self.class == o.class &&
166
174
  image == o.image &&
175
+ created_at == o.created_at &&
176
+ priority == o.priority &&
177
+ error == o.error &&
178
+ timeout == o.timeout &&
167
179
  retries == o.retries &&
168
180
  completed_at == o.completed_at &&
169
181
  delay == o.delay &&
170
182
  payload == o.payload &&
171
183
  name == o.name &&
172
- created_at == o.created_at &&
173
184
  started_at == o.started_at &&
174
185
  id == o.id &&
175
- error == o.error &&
176
- timeout == o.timeout &&
177
186
  status == o.status
178
187
  end
179
188
 
@@ -184,7 +193,7 @@ module IronTitan
184
193
 
185
194
  # Calculate hash code according to all attributes.
186
195
  def hash
187
- [image, retries, completed_at, delay, payload, name, created_at, started_at, id, error, timeout, status].hash
196
+ [image, created_at, priority, error, timeout, retries, completed_at, delay, payload, name, started_at, id, status].hash
188
197
  end
189
198
 
190
199
  # 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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -29,6 +29,9 @@ module IronTitan
29
29
  # Maximum runtime in seconds. If job runs for longer, it will be killed. Default 60 seconds.
30
30
  attr_accessor :timeout
31
31
 
32
+ # Priority of the job. 3 levels from 0-2. Default 0.
33
+ attr_accessor :priority
34
+
32
35
  # Number of retries. Default 3.
33
36
  attr_accessor :retries
34
37
 
@@ -46,6 +49,8 @@ module IronTitan
46
49
 
47
50
  :'timeout' => :'timeout',
48
51
 
52
+ :'priority' => :'priority',
53
+
49
54
  :'retries' => :'retries'
50
55
 
51
56
  }
@@ -59,6 +64,7 @@ module IronTitan
59
64
  :'payload' => :'String',
60
65
  :'delay' => :'Integer',
61
66
  :'timeout' => :'Integer',
67
+ :'priority' => :'Integer',
62
68
  :'retries' => :'Integer'
63
69
 
64
70
  }
@@ -85,14 +91,16 @@ module IronTitan
85
91
 
86
92
  if attributes[:'delay']
87
93
  self.delay = attributes[:'delay']
88
- else
89
- self.delay = 0
90
94
  end
91
95
 
92
96
  if attributes[:'timeout']
93
97
  self.timeout = attributes[:'timeout']
94
98
  end
95
99
 
100
+ if attributes[:'priority']
101
+ self.priority = attributes[:'priority']
102
+ end
103
+
96
104
  if attributes[:'retries']
97
105
  self.retries = attributes[:'retries']
98
106
  end
@@ -108,6 +116,7 @@ module IronTitan
108
116
  payload == o.payload &&
109
117
  delay == o.delay &&
110
118
  timeout == o.timeout &&
119
+ priority == o.priority &&
111
120
  retries == o.retries
112
121
  end
113
122
 
@@ -118,7 +127,7 @@ module IronTitan
118
127
 
119
128
  # Calculate hash code according to all attributes.
120
129
  def hash
121
- [name, image, payload, delay, timeout, retries].hash
130
+ [name, image, payload, delay, timeout, priority, retries].hash
122
131
  end
123
132
 
124
133
  # 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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3"
14
+ VERSION = "0.0.4"
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -42,7 +42,7 @@ describe 'Job' do
42
42
  end
43
43
  end
44
44
 
45
- describe 'test attribute "retries"' do
45
+ describe 'test attribute "created_at"' do
46
46
  it 'should work' do
47
47
  # assertion here
48
48
  # should be_a()
@@ -52,7 +52,7 @@ describe 'Job' do
52
52
  end
53
53
  end
54
54
 
55
- describe 'test attribute "completed_at"' do
55
+ describe 'test attribute "priority"' do
56
56
  it 'should work' do
57
57
  # assertion here
58
58
  # should be_a()
@@ -62,7 +62,7 @@ describe 'Job' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "delay"' do
65
+ describe 'test attribute "error"' do
66
66
  it 'should work' do
67
67
  # assertion here
68
68
  # should be_a()
@@ -72,7 +72,7 @@ describe 'Job' do
72
72
  end
73
73
  end
74
74
 
75
- describe 'test attribute "payload"' do
75
+ describe 'test attribute "timeout"' do
76
76
  it 'should work' do
77
77
  # assertion here
78
78
  # should be_a()
@@ -82,7 +82,7 @@ describe 'Job' do
82
82
  end
83
83
  end
84
84
 
85
- describe 'test attribute "name"' do
85
+ describe 'test attribute "retries"' do
86
86
  it 'should work' do
87
87
  # assertion here
88
88
  # should be_a()
@@ -92,7 +92,7 @@ describe 'Job' do
92
92
  end
93
93
  end
94
94
 
95
- describe 'test attribute "created_at"' do
95
+ describe 'test attribute "completed_at"' do
96
96
  it 'should work' do
97
97
  # assertion here
98
98
  # should be_a()
@@ -102,7 +102,7 @@ describe 'Job' do
102
102
  end
103
103
  end
104
104
 
105
- describe 'test attribute "started_at"' do
105
+ describe 'test attribute "delay"' do
106
106
  it 'should work' do
107
107
  # assertion here
108
108
  # should be_a()
@@ -112,7 +112,7 @@ describe 'Job' do
112
112
  end
113
113
  end
114
114
 
115
- describe 'test attribute "id"' do
115
+ describe 'test attribute "payload"' do
116
116
  it 'should work' do
117
117
  # assertion here
118
118
  # should be_a()
@@ -122,7 +122,7 @@ describe 'Job' do
122
122
  end
123
123
  end
124
124
 
125
- describe 'test attribute "error"' do
125
+ describe 'test attribute "name"' do
126
126
  it 'should work' do
127
127
  # assertion here
128
128
  # should be_a()
@@ -132,7 +132,17 @@ describe 'Job' do
132
132
  end
133
133
  end
134
134
 
135
- describe 'test attribute "timeout"' do
135
+ describe 'test attribute "started_at"' do
136
+ it 'should work' do
137
+ # assertion here
138
+ # should be_a()
139
+ # should be_nil
140
+ # should ==
141
+ # should_not ==
142
+ end
143
+ end
144
+
145
+ describe 'test attribute "id"' do
136
146
  it 'should work' do
137
147
  # assertion here
138
148
  # should be_a()
@@ -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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
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.3
6
+ OpenAPI spec version: 0.0.4
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -82,6 +82,16 @@ describe 'NewJob' do
82
82
  end
83
83
  end
84
84
 
85
+ describe 'test attribute "priority"' do
86
+ it 'should work' do
87
+ # assertion here
88
+ # should be_a()
89
+ # should be_nil
90
+ # should ==
91
+ # should_not ==
92
+ end
93
+ end
94
+
85
95
  describe 'test attribute "retries"' do
86
96
  it 'should work' do
87
97
  # assertion here
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.3
4
+ version: 0.0.4
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-02 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus