diff --git a/judoscale-sidekiq/test/benchmarks/collect_with_large_queues_benchmark.rb b/judoscale-sidekiq/test/benchmarks/collect_with_large_queues_benchmark.rb index 6da2d3b2..72a3fd91 100644 --- a/judoscale-sidekiq/test/benchmarks/collect_with_large_queues_benchmark.rb +++ b/judoscale-sidekiq/test/benchmarks/collect_with_large_queues_benchmark.rb @@ -36,6 +36,8 @@ def setup begin Sidekiq::Client.push_bulk "class" => "Foo", "args" => sidekiq_args rescue => e + # Redis sometimes fails locally when enqueueing a million jobs, so we need + # to retry a few times. attempts += 1 puts "RESCUED batch #{i}, attempt #{attempts}: #{e.class}, #{e.message}"