From caecd112603b5e4fc56b69edf3aaa7a5bad7cdf1 Mon Sep 17 00:00:00 2001 From: Samuel Beaulieu Date: Wed, 20 Jul 2022 15:17:45 -0500 Subject: [PATCH] retry longer for the Jruby error --- lib/vmpooler/aws_setup.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vmpooler/aws_setup.rb b/lib/vmpooler/aws_setup.rb index 2f084fa..9e0d9c5 100644 --- a/lib/vmpooler/aws_setup.rb +++ b/lib/vmpooler/aws_setup.rb @@ -57,8 +57,8 @@ module Vmpooler sleep 1 retry if (retries += 1) < 300 rescue Errno::EBADF => e - puts "#{host} Jruby error, try again for 30s (#{retries}): #{e}" - sleep 1 + puts "#{host} Jruby error, try again for 300s (#{retries}): #{e}" + sleep 10 retry if (retries += 1) < 30 rescue StandardError => e puts "#{host} Other error, cancelling aws_setup: #{e}"