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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9e2fc17763df2c4270f2e901c6ba7d1d734531002f7a4fe28c9f6a4b80c36f3
4
- data.tar.gz: 3ad0b7702e920c58cc790cf20bac37ab333ffee54e71fa8cf5ea050598439229
3
+ metadata.gz: cca021b1f893590122d04d39fe29b0a3543438df33e16b1061b7a8db9ac3ddc7
4
+ data.tar.gz: f5de23d139bd4bb8533159760e62ef3e7e25153c47e45c610ef8a2df219b43a7
5
5
  SHA512:
6
- metadata.gz: 15d1cd53c176e10c1654c07354e98fd11875bbdc5b4de886f80b6030b0191b213814880711287459b6578c50945a8e694db892de5d36c849f509407d078acd27
7
- data.tar.gz: c86a4a5dd58029ca5b825eda990e1e3ddf5cdb6b6d22c163c75a7134540a4bb9293974e0f164007a73b9035948af44ed715f29b747d06f2ce67c4716fe250898
6
+ metadata.gz: 0bd03838bb556158b41f0c237719ee427ea6d0de3f46afb7370e66dd1f8f8ed04a5111fa6c9be8ad8242e2a1076d5e64a019f31a9c633c9b8123ea780ccaf737
7
+ data.tar.gz: 227b14b284ba96f3697570c335c5b53d724a1f751fa4f55727d9905da46d32da605e483f8789bfca2b7ac303f67f0179a2664a8307747687f47f4b7f6e351052
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.101)
4
+ opswalrus (1.0.102)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -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
- retry if attempts <= 3
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
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.101"
2
+ VERSION = "1.0.102"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.101
4
+ version: 1.0.102
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis