0
0
Fork 0

Change sidekiq-bulk's batch size from 10,000 to 1,000 jobs in one Redis call (#24034)

This commit is contained in:
Claire 2023-03-15 03:45:15 +01:00 committed by GitHub
parent ed887271f3
commit 1d0ad558ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 16 additions and 16 deletions

View file

@ -41,7 +41,7 @@ class UnsuspendAccountService < BaseService
account_reach_finder = AccountReachFinder.new(@account)
ActivityPub::DeliveryWorker.push_bulk(account_reach_finder.inboxes) do |inbox_url|
ActivityPub::DeliveryWorker.push_bulk(account_reach_finder.inboxes, limit: 1_000) do |inbox_url|
[signed_activity_json, @account.id, inbox_url]
end
end