nomade 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/nomade/deployer.rb +2 -2
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 66623cdf7c89395ba7cd5ec0e44da3f7f528acb9
4
- data.tar.gz: 74babd5bdb5d5defa0f8d43c48b58122d0e9ed62
2
+ SHA256:
3
+ metadata.gz: 6f417cfcbfde5d25bf03f10ee5f0a5832ee74358b171bfa7230a5e77757a0955
4
+ data.tar.gz: 9e43abc5bd6857d1af142a01d5249c5cc147412ec0654c1b267a3e60796e836c
5
5
  SHA512:
6
- metadata.gz: c82745d63012c33c98e7e23f178deb9caeb071189aa9b6e317c2251efdc10bebae3bbf96c6f4d89861492f9bc88c081d7947f27d7c70dd6993965fc56dcb50ff
7
- data.tar.gz: 29da63fc9823646b42605d759c989b7bc30d19c1677acb9d38b11c8fe444f817a1302df7d7cb024f8674ec3ccddabe9ed9bfa7548cbf3b06d249d8c09a27ff94
6
+ metadata.gz: 4d8764150d3e60daea51632f0c7e4ca84517eecff94c0f1f3a1cf4cf7ec298a357f40980cd7fb4da23a3826f9b8fc6800f883b1b1e128b63f70cc56d9d6b9bde
7
+ data.tar.gz: 62f526842c5e5f2bf227b0200936522f1e3dcce0b305f26a9bcfb4b7f224c3930f23c3af6f216da20ae2b950ca9619c73ce4405ee7aeaea2e3fc05ca4661d0d2
@@ -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 * 9 # minutes
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(60..185)
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.3
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: 2019-11-26 00:00:00.000000000 Z
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
- rubyforge_project:
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