Commit ca0c3d76 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Fix migration threads for pages migration

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