aggkit 0.4.7.15738 → 0.4.7.15740
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/Gemfile.lock +1 -1
- data/bin/aggwrap +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a018371c0e089fe8f85aa2390b5b8fa9a2ed4bc756b54b71ca8b4ad088aa994e
|
4
|
+
data.tar.gz: b132656bc489045caf0cd6c602144ce91c12784e4c529ec9c3cadb79c27deef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16109a10097ff4cfcdf70f15565939ee295f331d2438c1dc28b4606d8d9249c6ac9cb71a09cb505d77ab98b5d8e4c24c4bcf13ced8a3aaa7d1f61a372df65ad9
|
7
|
+
data.tar.gz: 5a8f765e409014055f3ef8fe4a93c875886ddf58f41a12dff762840a01d33e913cc1fa10a2b15f209692e5560e471e7e83c2fb334c4c47d101208fbdcbefdb78
|
data/Gemfile.lock
CHANGED
data/bin/aggwrap
CHANGED
@@ -229,12 +229,12 @@ end
|
|
229
229
|
|
230
230
|
def make_ttl_pass(check_id, output = nil)
|
231
231
|
output = "Check at: #{Time.now.utc}\n#{output}"
|
232
|
-
STDERR.puts "TTL call failed: #{check_id}" unless Diplomat::Check.pass(check_id, output)
|
232
|
+
STDERR.puts "TTL call failed: #{check_id}" unless Diplomat::Check.pass(check_id, output, timeout: 5)
|
233
233
|
end
|
234
234
|
|
235
235
|
def make_ttl_fail(check_id, output = nil)
|
236
236
|
output = "#{Time.now.utc}\n#{output}"
|
237
|
-
STDERR.puts "TTL call failed: #{check_id}" unless Diplomat::Check.fail(check_id, output)
|
237
|
+
STDERR.puts "TTL call failed: #{check_id}" unless Diplomat::Check.fail(check_id, output, timeout: 5)
|
238
238
|
end
|
239
239
|
|
240
240
|
def check_http(check_id, port)
|
@@ -284,7 +284,7 @@ Thread.abort_on_exception = true
|
|
284
284
|
|
285
285
|
Thread.new do
|
286
286
|
loop do
|
287
|
-
die("Can't register service #{@service} in consul") unless Diplomat::Service.register(@service)
|
287
|
+
die("Can't register service #{@service} in consul") unless Diplomat::Service.register(@service, timeout: 10)
|
288
288
|
run_check(@checks[:exec]) do |check_id|
|
289
289
|
make_ttl_pass(check_id)
|
290
290
|
end
|