iron_titan 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -20
- data/lib/iron_titan/api/groups_api.rb +1 -1
- data/lib/iron_titan/api/jobs_api.rb +136 -136
- data/lib/iron_titan/api/runner_api.rb +37 -37
- data/lib/iron_titan/api_client.rb +1 -1
- data/lib/iron_titan/api_error.rb +1 -1
- data/lib/iron_titan/models/complete.rb +1 -1
- data/lib/iron_titan/models/error.rb +1 -1
- data/lib/iron_titan/models/error_body.rb +1 -1
- data/lib/iron_titan/models/group.rb +1 -1
- data/lib/iron_titan/models/group_wrapper.rb +1 -1
- data/lib/iron_titan/models/groups_wrapper.rb +1 -1
- data/lib/iron_titan/models/id_status.rb +1 -1
- data/lib/iron_titan/models/job.rb +8 -8
- data/lib/iron_titan/models/job_wrapper.rb +1 -1
- data/lib/iron_titan/models/jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/new_job.rb +1 -1
- data/lib/iron_titan/models/new_jobs_wrapper.rb +1 -1
- data/lib/iron_titan/models/start.rb +1 -1
- data/lib/iron_titan/version.rb +2 -2
- data/lib/iron_titan.rb +1 -1
- data/spec/api/groups_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +37 -37
- data/spec/api/runner_api_spec.rb +10 -10
- data/spec/models/complete_spec.rb +1 -1
- data/spec/models/error_body_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/group_wrapper_spec.rb +1 -1
- data/spec/models/groups_wrapper_spec.rb +1 -1
- data/spec/models/id_status_spec.rb +1 -1
- data/spec/models/job_spec.rb +2 -2
- data/spec/models/job_wrapper_spec.rb +1 -1
- data/spec/models/jobs_wrapper_spec.rb +1 -1
- data/spec/models/new_job_spec.rb +1 -1
- data/spec/models/new_jobs_wrapper_spec.rb +1 -1
- data/spec/models/start_spec.rb +1 -1
- metadata +2 -2
@@ -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.3.
|
6
|
+
OpenAPI spec version: 0.3.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -22,39 +22,39 @@ module IronTitan
|
|
22
22
|
|
23
23
|
# Mark job as failed.
|
24
24
|
# Job is marked as failed if it was in a valid state. Job's `finished_at` time is initialized.
|
25
|
-
# @param
|
25
|
+
# @param name Name of group for this set of jobs.
|
26
26
|
# @param id Job id
|
27
27
|
# @param body
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [JobWrapper]
|
30
|
-
def
|
31
|
-
data, status_code, headers =
|
30
|
+
def groups_name_jobs_id_error_post(name, id, body, opts = {})
|
31
|
+
data, status_code, headers = groups_name_jobs_id_error_post_with_http_info(name, id, body, opts)
|
32
32
|
return data
|
33
33
|
end
|
34
34
|
|
35
35
|
# Mark job as failed.
|
36
36
|
# Job is marked as failed if it was in a valid state. Job's `finished_at` time is initialized.
|
37
|
-
# @param
|
37
|
+
# @param name Name of group for this set of jobs.
|
38
38
|
# @param id Job id
|
39
39
|
# @param body
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
42
|
-
def
|
42
|
+
def groups_name_jobs_id_error_post_with_http_info(name, id, body, opts = {})
|
43
43
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug "Calling API: RunnerApi#
|
44
|
+
@api_client.config.logger.debug "Calling API: RunnerApi#groups_name_jobs_id_error_post ..."
|
45
45
|
end
|
46
46
|
|
47
|
-
# verify the required parameter '
|
48
|
-
fail "Missing the required parameter '
|
47
|
+
# verify the required parameter 'name' is set
|
48
|
+
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_error_post" if name.nil?
|
49
49
|
|
50
50
|
# verify the required parameter 'id' is set
|
51
|
-
fail "Missing the required parameter 'id' when calling
|
51
|
+
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_error_post" if id.nil?
|
52
52
|
|
53
53
|
# verify the required parameter 'body' is set
|
54
|
-
fail "Missing the required parameter 'body' when calling
|
54
|
+
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_error_post" if body.nil?
|
55
55
|
|
56
56
|
# resource path
|
57
|
-
local_var_path = "/groups/{
|
57
|
+
local_var_path = "/groups/{name}/jobs/{id}/error".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
58
58
|
|
59
59
|
# query parameters
|
60
60
|
query_params = {}
|
@@ -85,46 +85,46 @@ module IronTitan
|
|
85
85
|
:auth_names => auth_names,
|
86
86
|
:return_type => 'JobWrapper')
|
87
87
|
if @api_client.config.debugging
|
88
|
-
@api_client.config.logger.debug "API called: RunnerApi#
|
88
|
+
@api_client.config.logger.debug "API called: RunnerApi#groups_name_jobs_id_error_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
89
|
end
|
90
90
|
return data, status_code, headers
|
91
91
|
end
|
92
92
|
|
93
93
|
# Mark job as started, ie: status = 'running'
|
94
94
|
# Job status is changed to 'running' if it was in a valid state before. Job's `started_at` time is initialized.
|
95
|
-
# @param
|
95
|
+
# @param name Name of group for this set of jobs.
|
96
96
|
# @param id Job id
|
97
97
|
# @param body
|
98
98
|
# @param [Hash] opts the optional parameters
|
99
99
|
# @return [JobWrapper]
|
100
|
-
def
|
101
|
-
data, status_code, headers =
|
100
|
+
def groups_name_jobs_id_start_post(name, id, body, opts = {})
|
101
|
+
data, status_code, headers = groups_name_jobs_id_start_post_with_http_info(name, id, body, opts)
|
102
102
|
return data
|
103
103
|
end
|
104
104
|
|
105
105
|
# Mark job as started, ie: status = 'running'
|
106
106
|
# Job status is changed to 'running' if it was in a valid state before. Job's `started_at` time is initialized.
|
107
|
-
# @param
|
107
|
+
# @param name Name of group for this set of jobs.
|
108
108
|
# @param id Job id
|
109
109
|
# @param body
|
110
110
|
# @param [Hash] opts the optional parameters
|
111
111
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
112
|
-
def
|
112
|
+
def groups_name_jobs_id_start_post_with_http_info(name, id, body, opts = {})
|
113
113
|
if @api_client.config.debugging
|
114
|
-
@api_client.config.logger.debug "Calling API: RunnerApi#
|
114
|
+
@api_client.config.logger.debug "Calling API: RunnerApi#groups_name_jobs_id_start_post ..."
|
115
115
|
end
|
116
116
|
|
117
|
-
# verify the required parameter '
|
118
|
-
fail "Missing the required parameter '
|
117
|
+
# verify the required parameter 'name' is set
|
118
|
+
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_start_post" if name.nil?
|
119
119
|
|
120
120
|
# verify the required parameter 'id' is set
|
121
|
-
fail "Missing the required parameter 'id' when calling
|
121
|
+
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_start_post" if id.nil?
|
122
122
|
|
123
123
|
# verify the required parameter 'body' is set
|
124
|
-
fail "Missing the required parameter 'body' when calling
|
124
|
+
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_start_post" if body.nil?
|
125
125
|
|
126
126
|
# resource path
|
127
|
-
local_var_path = "/groups/{
|
127
|
+
local_var_path = "/groups/{name}/jobs/{id}/start".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
128
128
|
|
129
129
|
# query parameters
|
130
130
|
query_params = {}
|
@@ -155,46 +155,46 @@ module IronTitan
|
|
155
155
|
:auth_names => auth_names,
|
156
156
|
:return_type => 'JobWrapper')
|
157
157
|
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug "API called: RunnerApi#
|
158
|
+
@api_client.config.logger.debug "API called: RunnerApi#groups_name_jobs_id_start_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
159
|
end
|
160
160
|
return data, status_code, headers
|
161
161
|
end
|
162
162
|
|
163
163
|
# Mark job as succeeded.
|
164
164
|
# Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
|
165
|
-
# @param
|
165
|
+
# @param name Name of group for this set of jobs.
|
166
166
|
# @param id Job id
|
167
167
|
# @param body
|
168
168
|
# @param [Hash] opts the optional parameters
|
169
169
|
# @return [JobWrapper]
|
170
|
-
def
|
171
|
-
data, status_code, headers =
|
170
|
+
def groups_name_jobs_id_success_post(name, id, body, opts = {})
|
171
|
+
data, status_code, headers = groups_name_jobs_id_success_post_with_http_info(name, id, body, opts)
|
172
172
|
return data
|
173
173
|
end
|
174
174
|
|
175
175
|
# Mark job as succeeded.
|
176
176
|
# Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
|
177
|
-
# @param
|
177
|
+
# @param name Name of group for this set of jobs.
|
178
178
|
# @param id Job id
|
179
179
|
# @param body
|
180
180
|
# @param [Hash] opts the optional parameters
|
181
181
|
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
182
|
-
def
|
182
|
+
def groups_name_jobs_id_success_post_with_http_info(name, id, body, opts = {})
|
183
183
|
if @api_client.config.debugging
|
184
|
-
@api_client.config.logger.debug "Calling API: RunnerApi#
|
184
|
+
@api_client.config.logger.debug "Calling API: RunnerApi#groups_name_jobs_id_success_post ..."
|
185
185
|
end
|
186
186
|
|
187
|
-
# verify the required parameter '
|
188
|
-
fail "Missing the required parameter '
|
187
|
+
# verify the required parameter 'name' is set
|
188
|
+
fail "Missing the required parameter 'name' when calling groups_name_jobs_id_success_post" if name.nil?
|
189
189
|
|
190
190
|
# verify the required parameter 'id' is set
|
191
|
-
fail "Missing the required parameter 'id' when calling
|
191
|
+
fail "Missing the required parameter 'id' when calling groups_name_jobs_id_success_post" if id.nil?
|
192
192
|
|
193
193
|
# verify the required parameter 'body' is set
|
194
|
-
fail "Missing the required parameter 'body' when calling
|
194
|
+
fail "Missing the required parameter 'body' when calling groups_name_jobs_id_success_post" if body.nil?
|
195
195
|
|
196
196
|
# resource path
|
197
|
-
local_var_path = "/groups/{
|
197
|
+
local_var_path = "/groups/{name}/jobs/{id}/success".sub('{format}','json').sub('{' + 'name' + '}', name.to_s).sub('{' + 'id' + '}', id.to_s)
|
198
198
|
|
199
199
|
# query parameters
|
200
200
|
query_params = {}
|
@@ -225,7 +225,7 @@ module IronTitan
|
|
225
225
|
:auth_names => auth_names,
|
226
226
|
:return_type => 'JobWrapper')
|
227
227
|
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug "API called: RunnerApi#
|
228
|
+
@api_client.config.logger.debug "API called: RunnerApi#groups_name_jobs_id_success_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
229
|
end
|
230
230
|
return data, status_code, headers
|
231
231
|
end
|
data/lib/iron_titan/api_error.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.3.
|
6
|
+
OpenAPI spec version: 0.3.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -42,7 +42,7 @@ module IronTitan
|
|
42
42
|
attr_accessor :status
|
43
43
|
|
44
44
|
# Group this job belongs to.
|
45
|
-
attr_accessor :
|
45
|
+
attr_accessor :name
|
46
46
|
|
47
47
|
# The error message, if status is 'error'. This is errors due to things outside the job itself. Errors from user code will be found in the log.
|
48
48
|
attr_accessor :error
|
@@ -87,7 +87,7 @@ module IronTitan
|
|
87
87
|
|
88
88
|
:'status' => :'status',
|
89
89
|
|
90
|
-
:'
|
90
|
+
:'name' => :'name',
|
91
91
|
|
92
92
|
:'error' => :'error',
|
93
93
|
|
@@ -118,7 +118,7 @@ module IronTitan
|
|
118
118
|
:'retries_delay' => :'Integer',
|
119
119
|
:'id' => :'String',
|
120
120
|
:'status' => :'String',
|
121
|
-
:'
|
121
|
+
:'name' => :'String',
|
122
122
|
:'error' => :'String',
|
123
123
|
:'reason' => :'String',
|
124
124
|
:'created_at' => :'DateTime',
|
@@ -181,8 +181,8 @@ module IronTitan
|
|
181
181
|
self.status = attributes[:'status']
|
182
182
|
end
|
183
183
|
|
184
|
-
if attributes[:'
|
185
|
-
self.
|
184
|
+
if attributes[:'name']
|
185
|
+
self.name = attributes[:'name']
|
186
186
|
end
|
187
187
|
|
188
188
|
if attributes[:'error']
|
@@ -246,7 +246,7 @@ module IronTitan
|
|
246
246
|
retries_delay == o.retries_delay &&
|
247
247
|
id == o.id &&
|
248
248
|
status == o.status &&
|
249
|
-
|
249
|
+
name == o.name &&
|
250
250
|
error == o.error &&
|
251
251
|
reason == o.reason &&
|
252
252
|
created_at == o.created_at &&
|
@@ -263,7 +263,7 @@ module IronTitan
|
|
263
263
|
|
264
264
|
# Calculate hash code according to all attributes.
|
265
265
|
def hash
|
266
|
-
[image, payload, delay, timeout, priority, max_retries, retries_delay, id, status,
|
266
|
+
[image, payload, delay, timeout, priority, max_retries, retries_delay, id, status, name, error, reason, created_at, started_at, completed_at, retry_of, retry_at].hash
|
267
267
|
end
|
268
268
|
|
269
269
|
# build the object from hash
|
data/lib/iron_titan/version.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.3.
|
6
|
+
OpenAPI spec version: 0.3.8
|
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.3.
|
14
|
+
VERSION = "0.3.8"
|
15
15
|
end
|
data/lib/iron_titan.rb
CHANGED
data/spec/api/groups_api_spec.rb
CHANGED
data/spec/api/jobs_api_spec.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.3.
|
6
|
+
OpenAPI spec version: 0.3.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -32,15 +32,15 @@ describe 'JobsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for groups_name_jobs_get
|
36
36
|
# Get job list by group name.
|
37
37
|
# This will list jobs for a particular group.
|
38
|
-
# @param
|
38
|
+
# @param name Name of group for this set of jobs.
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @option opts [DateTime] :created_after Will return jobs created after this time. In RFC3339 format.
|
41
41
|
# @option opts [Integer] :n Number of jobs to return.
|
42
42
|
# @return [JobsWrapper]
|
43
|
-
describe '
|
43
|
+
describe 'groups_name_jobs_get test' do
|
44
44
|
it "should work" do
|
45
45
|
# assertion here
|
46
46
|
# should be_a()
|
@@ -50,14 +50,14 @@ describe 'JobsApi' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
# unit tests for
|
53
|
+
# unit tests for groups_name_jobs_id_cancel_post
|
54
54
|
# Cancel a job.
|
55
55
|
# Cancels a job in delayed, queued or running status. The worker may continue to run a running job. reason is set to `client_request`. The job's completed_at field is set to the current time on the jobserver.
|
56
|
-
# @param
|
56
|
+
# @param name Name of group for this set of jobs.
|
57
57
|
# @param id Job id
|
58
58
|
# @param [Hash] opts the optional parameters
|
59
59
|
# @return [JobWrapper]
|
60
|
-
describe '
|
60
|
+
describe 'groups_name_jobs_id_cancel_post test' do
|
61
61
|
it "should work" do
|
62
62
|
# assertion here
|
63
63
|
# should be_a()
|
@@ -67,14 +67,14 @@ describe 'JobsApi' do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
# unit tests for
|
70
|
+
# unit tests for groups_name_jobs_id_delete
|
71
71
|
# Delete the job.
|
72
72
|
# Delete only succeeds if job status is one of `succeeded\n| failed | cancelled`. Cancel a job if it is another state and needs to\nbe deleted. All information about the job, including the log, is\nirretrievably lost when this is invoked.\n
|
73
|
-
# @param
|
73
|
+
# @param name Name of group for this set of jobs.
|
74
74
|
# @param id Job id
|
75
75
|
# @param [Hash] opts the optional parameters
|
76
76
|
# @return [nil]
|
77
|
-
describe '
|
77
|
+
describe 'groups_name_jobs_id_delete test' do
|
78
78
|
it "should work" do
|
79
79
|
# assertion here
|
80
80
|
# should be_a()
|
@@ -84,15 +84,15 @@ describe 'JobsApi' do
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
# unit tests for
|
87
|
+
# unit tests for groups_name_jobs_id_error_post
|
88
88
|
# Mark job as failed.
|
89
89
|
# Job is marked as failed if it was in a valid state. Job's `finished_at` time is initialized.
|
90
|
-
# @param
|
90
|
+
# @param name Name of group for this set of jobs.
|
91
91
|
# @param id Job id
|
92
92
|
# @param body
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @return [JobWrapper]
|
95
|
-
describe '
|
95
|
+
describe 'groups_name_jobs_id_error_post test' do
|
96
96
|
it "should work" do
|
97
97
|
# assertion here
|
98
98
|
# should be_a()
|
@@ -102,14 +102,14 @@ describe 'JobsApi' do
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
-
# unit tests for
|
105
|
+
# unit tests for groups_name_jobs_id_get
|
106
106
|
# Gets job by id
|
107
107
|
# Gets a job by id.
|
108
|
-
# @param
|
108
|
+
# @param name Name of group for this set of jobs.
|
109
109
|
# @param id Job id
|
110
110
|
# @param [Hash] opts the optional parameters
|
111
111
|
# @return [JobWrapper]
|
112
|
-
describe '
|
112
|
+
describe 'groups_name_jobs_id_get test' do
|
113
113
|
it "should work" do
|
114
114
|
# assertion here
|
115
115
|
# should be_a()
|
@@ -119,14 +119,14 @@ describe 'JobsApi' do
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
-
# unit tests for
|
122
|
+
# unit tests for groups_name_jobs_id_log_get
|
123
123
|
# Get the log of a completed job.
|
124
124
|
# Retrieves the log from log storage.
|
125
|
-
# @param
|
125
|
+
# @param name Name of group for this set of jobs.
|
126
126
|
# @param id Job id
|
127
127
|
# @param [Hash] opts the optional parameters
|
128
128
|
# @return [String]
|
129
|
-
describe '
|
129
|
+
describe 'groups_name_jobs_id_log_get test' do
|
130
130
|
it "should work" do
|
131
131
|
# assertion here
|
132
132
|
# should be_a()
|
@@ -136,15 +136,15 @@ describe 'JobsApi' do
|
|
136
136
|
end
|
137
137
|
end
|
138
138
|
|
139
|
-
# unit tests for
|
139
|
+
# unit tests for groups_name_jobs_id_log_post
|
140
140
|
# Send in a log for storage.
|
141
141
|
# Logs are sent after a job completes since they may be very large and the runner can process the next job.
|
142
|
-
# @param
|
142
|
+
# @param name Name of group for this set of jobs.
|
143
143
|
# @param id Job id
|
144
144
|
# @param log Output log for the job. Content-Type must be \"text/plain; charset=utf-8\".
|
145
145
|
# @param [Hash] opts the optional parameters
|
146
146
|
# @return [JobWrapper]
|
147
|
-
describe '
|
147
|
+
describe 'groups_name_jobs_id_log_post test' do
|
148
148
|
it "should work" do
|
149
149
|
# assertion here
|
150
150
|
# should be_a()
|
@@ -154,14 +154,14 @@ describe 'JobsApi' do
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
-
# unit tests for
|
157
|
+
# unit tests for groups_name_jobs_id_retry_post
|
158
158
|
# Retry a job.
|
159
159
|
# \"The /retry endpoint can be used to force a retry of jobs\nwith status succeeded or cancelled. It can also be used to retry jobs\nthat in the failed state, but whose max_retries field is 0. The retried\njob will continue to have max_retries = 0.\"\n
|
160
|
-
# @param
|
160
|
+
# @param name Name of group for this set of jobs.
|
161
161
|
# @param id Job id
|
162
162
|
# @param [Hash] opts the optional parameters
|
163
163
|
# @return [JobWrapper]
|
164
|
-
describe '
|
164
|
+
describe 'groups_name_jobs_id_retry_post test' do
|
165
165
|
it "should work" do
|
166
166
|
# assertion here
|
167
167
|
# should be_a()
|
@@ -171,15 +171,15 @@ describe 'JobsApi' do
|
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
174
|
-
# unit tests for
|
174
|
+
# unit tests for groups_name_jobs_id_start_post
|
175
175
|
# Mark job as started, ie: status = 'running'
|
176
176
|
# Job status is changed to 'running' if it was in a valid state before. Job's `started_at` time is initialized.
|
177
|
-
# @param
|
177
|
+
# @param name Name of group for this set of jobs.
|
178
178
|
# @param id Job id
|
179
179
|
# @param body
|
180
180
|
# @param [Hash] opts the optional parameters
|
181
181
|
# @return [JobWrapper]
|
182
|
-
describe '
|
182
|
+
describe 'groups_name_jobs_id_start_post test' do
|
183
183
|
it "should work" do
|
184
184
|
# assertion here
|
185
185
|
# should be_a()
|
@@ -189,15 +189,15 @@ describe 'JobsApi' do
|
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
192
|
-
# unit tests for
|
192
|
+
# unit tests for groups_name_jobs_id_success_post
|
193
193
|
# Mark job as succeeded.
|
194
194
|
# Job status is changed to succeeded if it was in a valid state before. Job's `completed_at` time is initialized.
|
195
|
-
# @param
|
195
|
+
# @param name Name of group for this set of jobs.
|
196
196
|
# @param id Job id
|
197
197
|
# @param body
|
198
198
|
# @param [Hash] opts the optional parameters
|
199
199
|
# @return [JobWrapper]
|
200
|
-
describe '
|
200
|
+
describe 'groups_name_jobs_id_success_post test' do
|
201
201
|
it "should work" do
|
202
202
|
# assertion here
|
203
203
|
# should be_a()
|
@@ -207,14 +207,14 @@ describe 'JobsApi' do
|
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
-
# unit tests for
|
210
|
+
# unit tests for groups_name_jobs_id_touch_post
|
211
211
|
# Extend job timeout.
|
212
212
|
# Consumers can sometimes take a while to run the task after accepting it. An example is when the runner does not have the docker image locally, it can spend a significant time downloading the image.\nIf the timeout is small, the job may never get to run, or run but not be accepted by Titan. Consumers can touch the job before it times out. Titan will reset the timeout, giving the consumer another timeout seconds to run the job.\nTouch is only valid while the job is in a running state. If touch fails, the runner may stop running the job.\n
|
213
|
-
# @param
|
213
|
+
# @param name Name of group for this set of jobs.
|
214
214
|
# @param id Job id
|
215
215
|
# @param [Hash] opts the optional parameters
|
216
216
|
# @return [nil]
|
217
|
-
describe '
|
217
|
+
describe 'groups_name_jobs_id_touch_post test' do
|
218
218
|
it "should work" do
|
219
219
|
# assertion here
|
220
220
|
# should be_a()
|
@@ -224,14 +224,14 @@ describe 'JobsApi' do
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
-
# unit tests for
|
227
|
+
# unit tests for groups_name_jobs_post
|
228
228
|
# Enqueue Job
|
229
229
|
# Enqueues job(s). If any of the jobs is invalid, none of the jobs are enqueued.\n
|
230
|
-
# @param
|
230
|
+
# @param name name of the group.
|
231
231
|
# @param body Array of jobs to post.
|
232
232
|
# @param [Hash] opts the optional parameters
|
233
233
|
# @return [JobsWrapper]
|
234
|
-
describe '
|
234
|
+
describe 'groups_name_jobs_post test' do
|
235
235
|
it "should work" do
|
236
236
|
# assertion here
|
237
237
|
# should be_a()
|