Ensure to close DB connections within threads

This commit is contained in:
Sebastian Serth
2020-03-04 12:25:09 +01:00
parent cb4cd7066c
commit 06b3059655
4 changed files with 55 additions and 26 deletions

View File

@ -53,6 +53,8 @@ module SubmissionScoring
rfc.full_score_reached = true
rfc.save
}
ensure
ActiveRecord::Base.connection_pool.release_connection
end
end
if @embed_options.present? && @embed_options[:hide_test_results] && outputs.present?