mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Remove multithreaded writes to the same Array when using JRuby, fixes #5031
This commit is contained in:
parent
1f05bd6010
commit
bd3f2009ec
1 changed files with 4 additions and 3 deletions
|
@ -79,9 +79,10 @@ module Sidekiq
|
|||
if @strictly_ordered_queues
|
||||
@queues
|
||||
else
|
||||
queues = @queues.shuffle!.uniq
|
||||
queues << TIMEOUT
|
||||
queues
|
||||
permute = @queues.shuffle
|
||||
permute.uniq!
|
||||
permute << TIMEOUT
|
||||
permute
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue