From 3adf949663c8752a68376d27db33aba90b410f6e Mon Sep 17 00:00:00 2001 From: Victor Huang Date: Tue, 19 May 2015 19:08:54 -0700 Subject: [PATCH] increase method retry_and_suppress_exceptions default retries to 5 --- lib/sidekiq/processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/processor.rb b/lib/sidekiq/processor.rb index 2654a353..c93ea4e8 100644 --- a/lib/sidekiq/processor.rb +++ b/lib/sidekiq/processor.rb @@ -132,7 +132,7 @@ module Sidekiq # If an exception occurs in the block passed to this method, that block will be retried up to max_retries times. # All exceptions will be swallowed and logged. - def retry_and_suppress_exceptions(max_retries = 2) + def retry_and_suppress_exceptions(max_retries = 5) retry_count = 0 begin yield