Commit ca0c3d76 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Fix migration threads for pages migration

parent f69c6a72
......@@ -32,12 +32,14 @@ module Pages
def start_migration_threads
Array.new(@migration_threads) do
Thread.new do
Rails.application.executor.wrap do
while batch = @queue.pop
process_batch(batch)
end
end
end
end
end
def process_batch(batch)
batch.with_project_route_and_deployment.each do |metadatum|
......
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