From 31df2029a6a3428abf43b9564c28b50c777bfb87 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Mon, 4 Dec 2023 16:01:50 -0500 Subject: [PATCH] permit_concurrent_loads is not needed with zeitwerk autoloader This was only needed for classic autoloader. The core "freedom" patch made zeitwerk autoloader bypass the interlock anyway, so now that we're only supporting zeitwerk, this is no longer needed. Co-dependency: https://github.com/ManageIQ/manageiq/pull/22801 Part of the rails 7 upgrade: https://github.com/ManageIQ/manageiq/issues/22052 --- .../engine/miq_ae_engine/miq_ae_method.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb b/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb index f9885e3d..d474452a 100644 --- a/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb +++ b/lib/miq_automation_engine/engine/miq_ae_engine/miq_ae_method.rb @@ -145,10 +145,8 @@ def self.verbose_rc(return_code) def self.run_ruby_method(code, miq_request_id) ActiveRecord::Base.connection_pool.release_connection unless Rails.env.test? with_automation_env do - ActiveSupport::Dependencies.interlock.permit_concurrent_loads do - run_method(Gem.ruby, miq_request_id) do |stdin| - stdin.puts(code) - end + run_method(Gem.ruby, miq_request_id) do |stdin| + stdin.puts(code) end end end