buildmeister 0.8.5 → 0.8.6
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.
- data/lib/buildmeister.rb +5 -1
- metadata +1 -1
data/lib/buildmeister.rb
CHANGED
@@ -244,13 +244,17 @@ class Buildmeister
|
|
244
244
|
sleep notification_interval.minutes.to_i
|
245
245
|
|
246
246
|
reload_info
|
247
|
+
|
248
|
+
# Reset the retry count, since we successfully completed this iteration
|
249
|
+
retry_count = RETRY_COUNT
|
250
|
+
|
247
251
|
rescue StandardError => e
|
248
252
|
if retry_count < 1
|
249
253
|
puts "Retried #{RETRY_COUNT} times... I give up!"
|
250
254
|
raise e
|
251
255
|
else
|
252
256
|
# Exponential falloff...
|
253
|
-
sleep_time = 50 * (1 / (retry_count / 2))
|
257
|
+
sleep_time = (50.0 * (1 / (retry_count / 2.0))).to_i
|
254
258
|
|
255
259
|
puts "Caught error: #{e.class.name}: #{e.message}"
|
256
260
|
puts "#{retry_count} more tries... sleeping #{sleep_time} seconds..."
|