mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +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
|
SeedFu.quiet = true
|
||||||
|
|
||||||
def execute_concurently(concurrency)
|
def execute_concurently(concurrency, exceptions)
|
||||||
queue = Queue.new
|
queue = Queue.new
|
||||||
|
|
||||||
RailsMultisite::ConnectionManagement.each_connection do |db|
|
RailsMultisite::ConnectionManagement.each_connection do |db|
|
||||||
|
@ -148,7 +148,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
||||||
end.each(&:join)
|
end.each(&:join)
|
||||||
end
|
end
|
||||||
|
|
||||||
execute_concurently(concurrency) do |db|
|
execute_concurently(concurrency, exceptions) do |db|
|
||||||
puts "Migrating #{db}"
|
puts "Migrating #{db}"
|
||||||
ActiveRecord::Tasks::DatabaseTasks.migrate
|
ActiveRecord::Tasks::DatabaseTasks.migrate
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
||||||
seed_paths = DiscoursePluginRegistry.seed_paths
|
seed_paths = DiscoursePluginRegistry.seed_paths
|
||||||
SeedFu.seed(seed_paths, /001_refresh/)
|
SeedFu.seed(seed_paths, /001_refresh/)
|
||||||
|
|
||||||
execute_concurently(concurrency) do |db|
|
execute_concurently(concurrency, exceptions) do |db|
|
||||||
puts "Seeding #{db}"
|
puts "Seeding #{db}"
|
||||||
SeedFu.seed(seed_paths)
|
SeedFu.seed(seed_paths)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user