Change sidekiq-bulk's batch size from 10,000 to 1,000 jobs in one Redis call (#24034)
This commit is contained in:
parent
ed887271f3
commit
1d0ad558ff
10 changed files with 16 additions and 16 deletions
|
@ -12,7 +12,7 @@ class ActivityPub::DistributePollUpdateWorker
|
|||
|
||||
return unless @status.preloadable_poll
|
||||
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
||||
[payload, @account.id, inbox_url]
|
||||
end
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ class ActivityPub::MoveDistributionWorker
|
|||
@migration = AccountMigration.find(migration_id)
|
||||
@account = @migration.account
|
||||
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
||||
[signed_payload, @account.id, inbox_url]
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class ActivityPub::RawDistributionWorker
|
|||
def distribute!
|
||||
return if inboxes.empty?
|
||||
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
||||
[payload, source_account_id, inbox_url, options]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue