1
0
Fork 0
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:
Mike Perham 2021-10-21 11:39:12 -07:00
parent 1f05bd6010
commit bd3f2009ec

View file

@ -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