Skip to content

Commit

Permalink
rescue redis connection errors on job fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
novozhenets authored Sep 13, 2016
1 parent d34a144 commit b546950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/limit_fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def redis_brpop(queues)
sleep TIMEOUT # there are no queues to handle, so lets sleep
[] # and return nothing
else
Sidekiq.redis { |it| it.brpop *queues, TIMEOUT }
redis_retryable { Sidekiq.redis { |it| it.brpop *queues, TIMEOUT } }
end
end
end

0 comments on commit b546950

Please sign in to comment.