Skip to content

Commit

Permalink
Update collect_with_large_queues_benchmark.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlogic committed Dec 5, 2023
1 parent ac6dc41 commit 83ef11c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 83ef11c

Please sign in to comment.