We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 931b3f0 commit 644e503Copy full SHA for 644e503
1 file changed
lib/mastodon/cli_helper.rb
@@ -25,7 +25,9 @@ def parallelize_with_progress(scope)
25
exit(1)
26
end
27
28
- ActiveRecord::Base.configurations[Rails.env]['pool'] = options[:concurrency] + 1
+ db_config = ActiveRecord::Base.configurations[Rails.env].dup
29
+ db_config['pool'] = options[:concurrency] + 1
30
+ ActiveRecord::Base.establish_connection(db_config)
31
32
progress = create_progress_bar(scope.count)
33
pool = Concurrent::FixedThreadPool.new(options[:concurrency])
0 commit comments