Skip to content
代码片段 群组 项目
提交 ca0c3d76 编辑于 作者: Vladimir Shushlin's avatar Vladimir Shushlin
浏览文件

Fix migration threads for pages migration

上级 f69c6a72
No related branches found
No related tags found
无相关合并请求
......@@ -32,8 +32,10 @@ def execute
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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册