aggkit 0.4.8.19628 → 0.4.8.19629
Sign up to get free protection for your applications and to get access to all the features.
- 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: 7a54efbd65a56ca8e509217282eb5bc5e186d0364be3ad28e5f382b1d099fc1c
|
4
|
+
data.tar.gz: 61127afd246f49e4597aed005ec720024d9ab690d128b2ba47f7fba55df16f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0991c441dcb511e2aca710fca1b58dbc78ba7a00dc323b9b0ee8a04c10a247ec3427c54fd907ec279bfe3f84526a54df5366f046a343251a623a33410ad8f6fb'
|
7
|
+
data.tar.gz: 769e7f8020805cda5e575a605f6b05b003d74c2565b34a70d9b1ad964e6d3d32604f3e97a8fff969c72f66178d9556c568e850aaf585b8a4b19b60e02346bc97
|
data/Gemfile.lock
CHANGED
data/bin/aggwrap
CHANGED
@@ -235,12 +235,12 @@ end
|
|
235
235
|
Thread.abort_on_exception = true
|
236
236
|
|
237
237
|
def with_retry(count = 2)
|
238
|
+
retries = 0
|
238
239
|
begin
|
239
|
-
retries ||= 0
|
240
240
|
yield
|
241
241
|
rescue StandardError
|
242
242
|
if (retries += 1) < count
|
243
|
-
STDERR.puts "Retry #{retries}..."
|
243
|
+
STDERR.puts "Retry #{retries} at: #{Time.now}..."
|
244
244
|
retry
|
245
245
|
else
|
246
246
|
raise
|
@@ -251,7 +251,7 @@ end
|
|
251
251
|
def ensure_service_registered
|
252
252
|
with_retry(3) do
|
253
253
|
STDERR.puts "Ensure service #{@service[:Name]} with ID:#{@service[:ID]} registered..."
|
254
|
-
raise "Registration failed by Diplomat" unless Diplomat::Service.register(@service, timeout:
|
254
|
+
raise "Registration failed by Diplomat" unless Diplomat::Service.register(@service, timeout: 15)
|
255
255
|
yield
|
256
256
|
end
|
257
257
|
rescue => e
|