iron_titan 0.3.0 → 0.3.1
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/README.md +6 -5
- data/lib/iron_titan/api/groups_api.rb +1 -1
- data/lib/iron_titan/api/jobs_api.rb +71 -1
- data/lib/iron_titan/api_client.rb +1 -1
- data/lib/iron_titan/api_error.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 +2 -2
- data/lib/iron_titan/models/job.rb +2 -2
- 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/reason.rb +2 -2
- 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 +19 -1
- data/spec/models/Error_spec.rb +1 -1
- data/spec/models/Job_spec.rb +1 -1
- data/spec/models/error_body_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_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/reason_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37b5e69a4316e0efc101a450c307e918b0bc7041
|
4
|
+
data.tar.gz: 4e638ccf5e149139fb5318a77400d680d61243a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e71e6d0eab1656a8db9f1925b9aa0289f272b9f20cbdefa0c4f024feb20c72373eba390ddbcceaeb8f938973bc0380697ee06320387223df28f07e1d2086a8eb
|
7
|
+
data.tar.gz: 574fd4ee626bcd18ba4a01f9c2896e64bf3c732120c40b676b8b97fac0d43ed9f165bd676bf81fafad019d365c82c9f7c2ecc509c3f4fdd67edff362fb617a98
|
data/README.md
CHANGED
@@ -6,9 +6,9 @@ The ultimate, language agnostic, container based job processing framework.
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
|
-
- API version: 0.3.
|
10
|
-
- Package version: 0.3.
|
11
|
-
- Build date: 2016-04-
|
9
|
+
- API version: 0.3.2
|
10
|
+
- Package version: 0.3.1
|
11
|
+
- Build date: 2016-04-06T10:53:48.508Z
|
12
12
|
- Build package: class io.swagger.codegen.languages.RubyClientCodegen
|
13
13
|
|
14
14
|
## Installation
|
@@ -24,14 +24,14 @@ gem build iron_titan.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./iron_titan-0.3.
|
27
|
+
gem install ./iron_titan-0.3.1.gem
|
28
28
|
```
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'iron_titan', '~> 0.3.
|
34
|
+
gem 'iron_titan', '~> 0.3.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -81,6 +81,7 @@ Class | Method | HTTP request | Description
|
|
81
81
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_get**](docs/JobsApi.md#groups_group_name_jobs_id_get) | **GET** /groups/{group_name}/jobs/{id} | Gets job by id
|
82
82
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_log_get**](docs/JobsApi.md#groups_group_name_jobs_id_log_get) | **GET** /groups/{group_name}/jobs/{id}/log | Get the log of a completed job.
|
83
83
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_log_post**](docs/JobsApi.md#groups_group_name_jobs_id_log_post) | **POST** /groups/{group_name}/jobs/{id}/log | Send in a log for storage.
|
84
|
+
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_patch**](docs/JobsApi.md#groups_group_name_jobs_id_patch) | **PATCH** /groups/{group_name}/jobs/{id} | Update a job
|
84
85
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_retry_post**](docs/JobsApi.md#groups_group_name_jobs_id_retry_post) | **POST** /groups/{group_name}/jobs/{id}/retry | Retry a job.
|
85
86
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_success_post**](docs/JobsApi.md#groups_group_name_jobs_id_success_post) | **POST** /groups/{group_name}/jobs/{id}/success | Mark job as succeeded.
|
86
87
|
*IronTitan::JobsApi* | [**groups_group_name_jobs_id_touch_post**](docs/JobsApi.md#groups_group_name_jobs_id_touch_post) | **POST** /groups/{group_name}/jobs/{id}/touch | Extend job timeout.
|
@@ -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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -487,6 +487,76 @@ module IronTitan
|
|
487
487
|
return data, status_code, headers
|
488
488
|
end
|
489
489
|
|
490
|
+
# Update a job
|
491
|
+
# Used to update status on job transitions. Eg: from 'running' to 'success'.
|
492
|
+
# @param group_name Name of group for this set of jobs.
|
493
|
+
# @param id Job id
|
494
|
+
# @param body Job data to post
|
495
|
+
# @param [Hash] opts the optional parameters
|
496
|
+
# @return [JobWrapper]
|
497
|
+
def groups_group_name_jobs_id_patch(group_name, id, body, opts = {})
|
498
|
+
data, status_code, headers = groups_group_name_jobs_id_patch_with_http_info(group_name, id, body, opts)
|
499
|
+
return data
|
500
|
+
end
|
501
|
+
|
502
|
+
# Update a job
|
503
|
+
# Used to update status on job transitions. Eg: from 'running' to 'success'.
|
504
|
+
# @param group_name Name of group for this set of jobs.
|
505
|
+
# @param id Job id
|
506
|
+
# @param body Job data to post
|
507
|
+
# @param [Hash] opts the optional parameters
|
508
|
+
# @return [Array<(JobWrapper, Fixnum, Hash)>] JobWrapper data, response status code and response headers
|
509
|
+
def groups_group_name_jobs_id_patch_with_http_info(group_name, id, body, opts = {})
|
510
|
+
if @api_client.config.debugging
|
511
|
+
@api_client.config.logger.debug "Calling API: JobsApi#groups_group_name_jobs_id_patch ..."
|
512
|
+
end
|
513
|
+
|
514
|
+
# verify the required parameter 'group_name' is set
|
515
|
+
fail "Missing the required parameter 'group_name' when calling groups_group_name_jobs_id_patch" if group_name.nil?
|
516
|
+
|
517
|
+
# verify the required parameter 'id' is set
|
518
|
+
fail "Missing the required parameter 'id' when calling groups_group_name_jobs_id_patch" if id.nil?
|
519
|
+
|
520
|
+
# verify the required parameter 'body' is set
|
521
|
+
fail "Missing the required parameter 'body' when calling groups_group_name_jobs_id_patch" if body.nil?
|
522
|
+
|
523
|
+
# resource path
|
524
|
+
local_var_path = "/groups/{group_name}/jobs/{id}".sub('{format}','json').sub('{' + 'group_name' + '}', group_name.to_s).sub('{' + 'id' + '}', id.to_s)
|
525
|
+
|
526
|
+
# query parameters
|
527
|
+
query_params = {}
|
528
|
+
|
529
|
+
# header parameters
|
530
|
+
header_params = {}
|
531
|
+
|
532
|
+
# HTTP header 'Accept' (if needed)
|
533
|
+
_header_accept = ['application/json']
|
534
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
535
|
+
|
536
|
+
# HTTP header 'Content-Type'
|
537
|
+
_header_content_type = ['application/json']
|
538
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
539
|
+
|
540
|
+
# form parameters
|
541
|
+
form_params = {}
|
542
|
+
|
543
|
+
# http body (model)
|
544
|
+
post_body = @api_client.object_to_http_body(body)
|
545
|
+
|
546
|
+
auth_names = []
|
547
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
548
|
+
:header_params => header_params,
|
549
|
+
:query_params => query_params,
|
550
|
+
:form_params => form_params,
|
551
|
+
:body => post_body,
|
552
|
+
:auth_names => auth_names,
|
553
|
+
:return_type => 'JobWrapper')
|
554
|
+
if @api_client.config.debugging
|
555
|
+
@api_client.config.logger.debug "API called: JobsApi#groups_group_name_jobs_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
556
|
+
end
|
557
|
+
return data, status_code, headers
|
558
|
+
end
|
559
|
+
|
490
560
|
# Retry a job.
|
491
561
|
# \"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
|
492
562
|
# @param group_name Name of group for this set of jobs.
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -17,7 +17,7 @@ module IronTitan
|
|
17
17
|
# Unique identifier representing a specific job.
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
# States and valid transitions.\n\n +---------+\n +---------> delayed <----------------+\n +----+----+ |\n | |\n | |\n +----v----+ |\n +---------> queued <----------------+\n +----+----+ *\n | *\n | retry * creates new job\n +----v----+ *\n | running | *\n +--+-+-+--+ |\n +---------|-|-|-----+-------------+\n +---|---------+ | +-----|---------+ |\n | | | | | |\n+-----v---^-+ +--v-------^+ +--v---^-+\n| success | | cancelled | | error |\n+-----------+ +-----------+ +--------+\n\n* delayed - has a delay.\n* queued - Ready to be consumed when it's turn comes.\n* running - Currently consumed by a runner which will attempt to process it.\n* success - (or complete? success/error is common javascript terminology)\n* error - Something went wrong. In this case more information can be obtained\n by inspecting the \"reason\" field.\n - timeout\n - killed - forcibly killed by worker due to resource restrictions or access\n violations.\n - bad_exit - exited with non-zero status due to program termination/crash.\n* cancelled - cancelled via API. More information in the reason field.\n - client_request - Request was cancelled by a client
|
20
|
+
# States and valid transitions.\n\n +---------+\n +---------> delayed <----------------+\n +----+----+ |\n | |\n | |\n +----v----+ |\n +---------> queued <----------------+\n +----+----+ *\n | *\n | retry * creates new job\n +----v----+ *\n | running | *\n +--+-+-+--+ |\n +---------|-|-|-----+-------------+\n +---|---------+ | +-----|---------+ |\n | | | | | |\n+-----v---^-+ +--v-------^+ +--v---^-+\n| success | | cancelled | | error |\n+-----------+ +-----------+ +--------+\n\n* delayed - has a delay.\n* queued - Ready to be consumed when it's turn comes.\n* running - Currently consumed by a runner which will attempt to process it.\n* success - (or complete? success/error is common javascript terminology)\n* error - Something went wrong. In this case more information can be obtained\n by inspecting the \"reason\" field.\n - timeout\n - killed - forcibly killed by worker due to resource restrictions or access\n violations.\n - bad_exit - exited with non-zero status due to program termination/crash.\n* cancelled - cancelled via API. More information in the reason field.\n - client_request - Request was cancelled by a client.\n
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -38,7 +38,7 @@ module IronTitan
|
|
38
38
|
# Unique identifier representing a specific job.
|
39
39
|
attr_accessor :id
|
40
40
|
|
41
|
-
# States and valid transitions.\n\n +---------+\n +---------> delayed <----------------+\n +----+----+ |\n | |\n | |\n +----v----+ |\n +---------> queued <----------------+\n +----+----+ *\n | *\n | retry * creates new job\n +----v----+ *\n | running | *\n +--+-+-+--+ |\n +---------|-|-|-----+-------------+\n +---|---------+ | +-----|---------+ |\n | | | | | |\n+-----v---^-+ +--v-------^+ +--v---^-+\n| success | | cancelled | | error |\n+-----------+ +-----------+ +--------+\n\n* delayed - has a delay.\n* queued - Ready to be consumed when it's turn comes.\n* running - Currently consumed by a runner which will attempt to process it.\n* success - (or complete? success/error is common javascript terminology)\n* error - Something went wrong. In this case more information can be obtained\n by inspecting the \"reason\" field.\n - timeout\n - killed - forcibly killed by worker due to resource restrictions or access\n violations.\n - bad_exit - exited with non-zero status due to program termination/crash.\n* cancelled - cancelled via API. More information in the reason field.\n - client_request - Request was cancelled by a client
|
41
|
+
# States and valid transitions.\n\n +---------+\n +---------> delayed <----------------+\n +----+----+ |\n | |\n | |\n +----v----+ |\n +---------> queued <----------------+\n +----+----+ *\n | *\n | retry * creates new job\n +----v----+ *\n | running | *\n +--+-+-+--+ |\n +---------|-|-|-----+-------------+\n +---|---------+ | +-----|---------+ |\n | | | | | |\n+-----v---^-+ +--v-------^+ +--v---^-+\n| success | | cancelled | | error |\n+-----------+ +-----------+ +--------+\n\n* delayed - has a delay.\n* queued - Ready to be consumed when it's turn comes.\n* running - Currently consumed by a runner which will attempt to process it.\n* success - (or complete? success/error is common javascript terminology)\n* error - Something went wrong. In this case more information can be obtained\n by inspecting the \"reason\" field.\n - timeout\n - killed - forcibly killed by worker due to resource restrictions or access\n violations.\n - bad_exit - exited with non-zero status due to program termination/crash.\n* cancelled - cancelled via API. More information in the reason field.\n - client_request - Request was cancelled by a client.\n
|
42
42
|
attr_accessor :status
|
43
43
|
|
44
44
|
# Group this job belongs to.
|
@@ -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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -13,7 +13,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module IronTitan
|
16
|
-
# Machine usable reason for job being in this state
|
16
|
+
# Machine usable reason for job being in this state.\nValid values for error status are `timeout | killed | bad_exit`.\nValid values for cancelled status are `client_request`.\nFor everything else, this is undefined.\n
|
17
17
|
class Reason
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
19
19
|
def self.attribute_map
|
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.2
|
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.1"
|
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.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
|
@@ -154,6 +154,24 @@ describe 'JobsApi' do
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
+
# unit tests for groups_group_name_jobs_id_patch
|
158
|
+
# Update a job
|
159
|
+
# Used to update status on job transitions. Eg: from 'running' to 'success'.
|
160
|
+
# @param group_name Name of group for this set of jobs.
|
161
|
+
# @param id Job id
|
162
|
+
# @param body Job data to post
|
163
|
+
# @param [Hash] opts the optional parameters
|
164
|
+
# @return [JobWrapper]
|
165
|
+
describe 'groups_group_name_jobs_id_patch test' do
|
166
|
+
it "should work" do
|
167
|
+
# assertion here
|
168
|
+
# should be_a()
|
169
|
+
# should be_nil
|
170
|
+
# should ==
|
171
|
+
# should_not ==
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
157
175
|
# unit tests for groups_group_name_jobs_id_retry_post
|
158
176
|
# Retry a job.
|
159
177
|
# \"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
|
data/spec/models/Error_spec.rb
CHANGED
data/spec/models/Job_spec.rb
CHANGED
data/spec/models/group_spec.rb
CHANGED
data/spec/models/new_job_spec.rb
CHANGED
data/spec/models/reason_spec.rb
CHANGED
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.3.
|
4
|
+
version: 0.3.1
|
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-04-
|
11
|
+
date: 2016-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|