From 344e02aa10fb242c36236ead687f2694ce18cb16 Mon Sep 17 00:00:00 2001 From: Jason Frey Date: Tue, 19 Dec 2023 14:33:34 -0500 Subject: [PATCH] Merge pull request #537 from jrafanie/drop_as_dependencies_interlock_with_classic_autoloader_gone permit_concurrent_loads is not needed with zeitwerk autoloader (cherry picked from commit 29852c42ad3240874945edcb16ea4b3de50ed6a0) --- .../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