diff --git a/app/models/ems_refresh.rb b/app/models/ems_refresh.rb index f3b37c596ee..c7798fbc148 100644 --- a/app/models/ems_refresh.rb +++ b/app/models/ems_refresh.rb @@ -170,6 +170,7 @@ def self.queue_merge(targets, ems, create_task = false) # Items will be naturally serialized since there is a dedicated worker. MiqQueue.put_or_update(queue_options) do |msg, item| targets = msg.nil? ? targets : msg.data.concat(targets) + targets.uniq! if targets.size > 1_000 # If we are merging with an existing queue item we don't need a new # task, just use the original one