diff --git a/app/models/miq_worker.rb b/app/models/miq_worker.rb index bc12d0a7956..e0ccb641d6e 100644 --- a/app/models/miq_worker.rb +++ b/app/models/miq_worker.rb @@ -336,7 +336,7 @@ def self.close_pg_sockets_inherited_from_parent # This converts it back to a Ruby Array safely. def queue_name begin - JSON.parse(self[:queue_name]) + JSON.parse(self[:queue_name]).sort rescue JSON::ParserError, TypeError self[:queue_name] end