nomade 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 +5 -5
- data/lib/nomade/deployer.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6f417cfcbfde5d25bf03f10ee5f0a5832ee74358b171bfa7230a5e77757a0955
|
4
|
+
data.tar.gz: 9e43abc5bd6857d1af142a01d5249c5cc147412ec0654c1b267a3e60796e836c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d8764150d3e60daea51632f0c7e4ca84517eecff94c0f1f3a1cf4cf7ec298a357f40980cd7fb4da23a3826f9b8fc6800f883b1b1e128b63f70cc56d9d6b9bde
|
7
|
+
data.tar.gz: 62f526842c5e5f2bf227b0200936522f1e3dcce0b305f26a9bcfb4b7f224c3930f23c3af6f216da20ae2b950ca9619c73ce4405ee7aeaea2e3fc05ca4661d0d2
|
data/lib/nomade/deployer.rb
CHANGED
@@ -4,7 +4,7 @@ module Nomade
|
|
4
4
|
@nomad_job = nomad_job
|
5
5
|
@evaluation_id = nil
|
6
6
|
@deployment_id = nil
|
7
|
-
@timeout = Time.now.utc + 60 *
|
7
|
+
@timeout = Time.now.utc + 60 * 3 # minutes
|
8
8
|
@nomad_endpoint = nomad_endpoint
|
9
9
|
@http = Nomade::Http.new(@nomad_endpoint)
|
10
10
|
@logger = opts.fetch(:logger, Nomade.logger)
|
@@ -178,7 +178,7 @@ module Nomade
|
|
178
178
|
|
179
179
|
if succesful_deployment == nil && json["TaskGroups"].values.all?{|tg| tg["HealthyAllocs"] >= tg["DesiredCanaries"]}
|
180
180
|
if !promoted
|
181
|
-
random_linger = rand(
|
181
|
+
random_linger = rand(8..28)
|
182
182
|
@logger.info "Lingering around for #{random_linger} seconds before deployment.."
|
183
183
|
sleep(random_linger)
|
184
184
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nomade
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kasper Grubbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yell
|
@@ -71,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
75
|
-
rubygems_version: 2.6.11
|
74
|
+
rubygems_version: 3.0.1
|
76
75
|
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: Gem that deploys nomad jobs
|