mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Merge pull request #3152 from alphagov/fix-testing-with-overridden-queue
Prevent an infinite loop when the job queue is not the worker default
This commit is contained in:
commit
32e3d853b7
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ module Sidekiq
|
|||
def drain
|
||||
while jobs.any?
|
||||
next_job = jobs.first
|
||||
Queues.delete_for(next_job["jid"], queue, self.to_s)
|
||||
Queues.delete_for(next_job["jid"], next_job["queue"], self.to_s)
|
||||
process_job(next_job)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue