From 2e1efbde52c311d12466692e0ee03e5c789cf2d8 Mon Sep 17 00:00:00 2001 From: Dan Ungureanu Date: Mon, 22 Jun 2020 19:23:59 +0300 Subject: [PATCH] FIX: Pass local scope variable to inner function --- lib/tasks/db.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index c837a4525b7..7b8facadc78 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -114,7 +114,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do | SeedFu.quiet = true - def execute_concurently(concurrency) + def execute_concurently(concurrency, exceptions) queue = Queue.new RailsMultisite::ConnectionManagement.each_connection do |db| @@ -148,7 +148,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do | end.each(&:join) end - execute_concurently(concurrency) do |db| + execute_concurently(concurrency, exceptions) do |db| puts "Migrating #{db}" ActiveRecord::Tasks::DatabaseTasks.migrate @@ -160,7 +160,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do | seed_paths = DiscoursePluginRegistry.seed_paths SeedFu.seed(seed_paths, /001_refresh/) - execute_concurently(concurrency) do |db| + execute_concurently(concurrency, exceptions) do |db| puts "Seeding #{db}" SeedFu.seed(seed_paths) end