retry longer for the Jruby error

This commit is contained in:
Samuel Beaulieu 2022-07-20 15:17:45 -05:00
parent ea36218120
commit caecd11260
No known key found for this signature in database
GPG key ID: 12030F74136D0F34

View file

@ -57,8 +57,8 @@ module Vmpooler
sleep 1 sleep 1
retry if (retries += 1) < 300 retry if (retries += 1) < 300
rescue Errno::EBADF => e rescue Errno::EBADF => e
puts "#{host} Jruby error, try again for 30s (#{retries}): #{e}" puts "#{host} Jruby error, try again for 300s (#{retries}): #{e}"
sleep 1 sleep 10
retry if (retries += 1) < 30 retry if (retries += 1) < 30
rescue StandardError => e rescue StandardError => e
puts "#{host} Other error, cancelling aws_setup: #{e}" puts "#{host} Other error, cancelling aws_setup: #{e}"