Commit 9da47a7c authored by Vladimir Shushlin's avatar Vladimir Shushlin

Fix pages migration deadlock

parent b1d094be
......@@ -24,7 +24,9 @@ module Pages
@queue.close
@logger.info("Waiting for threads to finish...")
threads.each(&:join)
ActiveSupport::Dependencies.interlock.permit_concurrent_loads do
threads.each(&:join)
end
{ migrated: @migrated, errored: @errored }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment