diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-03-15 03:45:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 03:45:15 +0100 |
commit | 1d0ad558ff51ce3e42ef4e4c9a9bed3c4b722d0d (patch) | |
tree | f1ee5da8cf2755f4a16b6300e3f18a6965c84c63 /app/services/update_account_service.rb | |
parent | ed887271f3985b00d97139ae25b73b1f062666be (diff) |
Change sidekiq-bulk's batch size from 10,000 to 1,000 jobs in one Redis call (#24034)
Diffstat (limited to 'app/services/update_account_service.rb')
-rw-r--r-- | app/services/update_account_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/update_account_service.rb b/app/services/update_account_service.rb index 71976ab00..4604d71b2 100644 --- a/app/services/update_account_service.rb +++ b/app/services/update_account_service.rb @@ -22,7 +22,7 @@ class UpdateAccountService < BaseService def authorize_all_follow_requests(account) follow_requests = FollowRequest.where(target_account: account) follow_requests = follow_requests.preload(:account).select { |req| !req.account.silenced? } - AuthorizeFollowWorker.push_bulk(follow_requests) do |req| + AuthorizeFollowWorker.push_bulk(follow_requests, limit: 1_000) do |req| [req.account_id, req.target_account_id] end end |