1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Pipeline the bulk_requeue operation

This commit is contained in:
Mike Perham 2014-05-28 13:33:33 -07:00
parent 605d7d0747
commit 015876bbd8

View file

@ -116,8 +116,10 @@ module Sidekiq
end
Sidekiq.redis do |conn|
jobs_to_requeue.each do |queue, jobs|
conn.rpush("queue:#{queue}", jobs)
conn.pipelined do
jobs_to_requeue.each do |queue, jobs|
conn.rpush("queue:#{queue}", jobs)
end
end
end
Sidekiq.logger.info("Pushed #{inprogress.size} messages back to Redis")