evt-retry 1.0.0.2 → 1.0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/retry/retry.rb +5 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0bf81be4f5051ce164a121ffc0830aecac9b904b64577d47cb22aec99e5b4f8
|
4
|
+
data.tar.gz: ea5ab6fbab82ae872213725a4439077e63d3b3d759e4c0190d8d3b1561cd482d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6a40c6bf9fb292da8c6cb6a01cfb82f28d028f4b2ff15d4c66baac465faa1dc6dc103381fc97d37cfc1679c7d4bbc69a7f08b8314d1356446f97ab51af616d
|
7
|
+
data.tar.gz: a194cf331d4ea766034ed66cd085a862a0c93df14543817d611c71d2591ec7cc03ead3dca03e080abd2d2876744952d499e60341b4df7554bb7e40698f56888c
|
data/lib/retry/retry.rb
CHANGED
@@ -55,13 +55,16 @@ class Retry
|
|
55
55
|
break
|
56
56
|
end
|
57
57
|
|
58
|
-
interval =
|
58
|
+
interval = nil
|
59
|
+
Try.(StopIteration) do
|
60
|
+
interval = intervals.next
|
61
|
+
end
|
59
62
|
|
60
63
|
logger.debug { "Attempt failed (Cycle: #{cycle}, Error: #{error.class.name})" }
|
61
64
|
telemetry.record :failed, Retry::Telemetry::Data::Failed.new(cycle, error.class, interval)
|
62
65
|
|
63
66
|
if interval.nil?
|
64
|
-
logger.debug {
|
67
|
+
logger.debug { 'No more attempts. Intervals depleted.' }
|
65
68
|
break
|
66
69
|
end
|
67
70
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-retry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-try
|