opswalrus 1.0.101 → 1.0.102
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/lib/opswalrus/host.rb +5 -2
- data/lib/opswalrus/version.rb +1 -1
- 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: cca021b1f893590122d04d39fe29b0a3543438df33e16b1061b7a8db9ac3ddc7
|
4
|
+
data.tar.gz: f5de23d139bd4bb8533159760e62ef3e7e25153c47e45c610ef8a2df219b43a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bd03838bb556158b41f0c237719ee427ea6d0de3f46afb7370e66dd1f8f8ed04a5111fa6c9be8ad8242e2a1076d5e64a019f31a9c633c9b8123ea780ccaf737
|
7
|
+
data.tar.gz: 227b14b284ba96f3697570c335c5b53d724a1f751fa4f55727d9905da46d32da605e483f8789bfca2b7ac303f67f0179a2664a8307747687f47f4b7f6e351052
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -173,12 +173,15 @@ module OpsWalrus
|
|
173
173
|
}
|
174
174
|
end
|
175
175
|
|
176
|
-
def autoretry(&block)
|
176
|
+
def autoretry(delay: 5, timeout: 300, &block)
|
177
177
|
attempts ||= 0
|
178
178
|
attempts += 1
|
179
179
|
block.call
|
180
180
|
rescue RetriableRemoteInvocationError => e
|
181
|
-
|
181
|
+
if attempts <= 3
|
182
|
+
reconnected = reconnect(delay, timeout)
|
183
|
+
retry if reconnected
|
184
|
+
end
|
182
185
|
end
|
183
186
|
|
184
187
|
# returns an integer number of seconds if reconnected; nil otherwise
|
data/lib/opswalrus/version.rb
CHANGED