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:
parent
605d7d0747
commit
015876bbd8
1 changed files with 4 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue