ソースを参照

Fix tootctl not allocating enough database connections for main thread (#12097)

master^2
Eugen Rochko 4年前
committed by GitHub
コミット
6c9b4f6b77
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更1行の追加2行の削除
  1. +1
    -1
      lib/mastodon/cli_helper.rb
  2. +0
    -1
      lib/mastodon/feeds_cli.rb

+ 1
- 1
lib/mastodon/cli_helper.rb ファイルの表示

@@ -20,7 +20,7 @@ module Mastodon
exit(1)
end

ActiveRecord::Base.configurations[Rails.env]['pool'] = options[:concurrency]
ActiveRecord::Base.configurations[Rails.env]['pool'] = options[:concurrency] + 1

progress = create_progress_bar(scope.count)
pool = Concurrent::FixedThreadPool.new(options[:concurrency])


+ 0
- 1
lib/mastodon/feeds_cli.rb ファイルの表示

@@ -27,7 +27,6 @@ module Mastodon
dry_run = options[:dry_run] ? '(DRY RUN)' : ''

if options[:all] || username.nil?

processed, = parallelize_with_progress(Account.joins(:user).merge(User.active)) do |account|
PrecomputeFeedService.new.call(account) unless options[:dry_run]
end


読み込み中…
キャンセル
保存