mirror of
https://github.com/puppetlabs/beaker-vmpooler.git
synced 2026-01-26 02:58:42 -05:00
Merge pull request #13 from DavidS/randomized-backoff
(maint) random backoff strategy
This commit is contained in:
commit
d1ad5bb083
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ module Beaker
|
|||
@logger.debug("Retrying provision for vmpooler host after waiting #{wait} second(s)")
|
||||
sleep wait
|
||||
waited += wait
|
||||
last_wait, wait = wait, last_wait + wait
|
||||
last_wait, wait = wait, [last_wait + wait, 15].min + rand(5)
|
||||
retry
|
||||
end
|
||||
report_and_raise(@logger, e, 'Vmpooler.provision')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue