Commit 028e369c authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '300123-several-job-timeouts-this-morning-for-rspec-unit-pg11-11-20' into 'master'

Fix pages migration deadlock

See merge request gitlab-org/gitlab!52677
parents c7b8f117 9da47a7c
......@@ -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