v0.52 Improve handling and look at how we can improve ActiveRecord config for PostgreSQL and avoid insufficient pool size

This commit is contained in:
David Sainty 2024-08-19 22:09:38 +10:00
parent 90ee7854b8
commit 6360e99a96

View File

@ -1513,8 +1513,8 @@ class GossamerForumsImporter < ImportScripts::Base
# update_highest_processed_post_id_thread_safe(post_id) # update_highest_processed_post_id_thread_safe(post_id)
rescue ActiveRecord::RecordInvalid => e rescue ActiveRecord::RecordInvalid => e
puts "Error importing topic with post_id #{row['post_id']}: #{e.message}" puts "---> ERROR importing topic with post_id #{row['post_id']}: #{e.message}"
raise ActiveRecord::Rollback # raise ActiveRecord::Rollback
end end
# end # end
else else