mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:16:08 +08:00
FIX: Pass local scope variable to inner function
This commit is contained in:
parent
68f767a557
commit
2e1efbde52
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user