bump limits

This commit is contained in:
sneakers-the-rat 2025-05-02 23:33:34 -07:00
parent 849c0500b0
commit f9600fcbd3
No known key found for this signature in database
GPG Key ID: 6DCB96EF1E4D232D
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ FETCH_REPLIES_MAX_PAGES=500
ACCOUNT_BACKFILL_ENABLED=true
# Max statuses to fetch when backfilling a new account
ACCOUNT_BACKFILL_MAX_STATUSES=500
ACCOUNT_BACKFILL_MAX_STATUSES=1000
# Max number of replies Collection pages to fetch
ACCOUNT_BACKFILL_MAX_PAGES=100
ACCOUNT_BACKFILL_MAX_PAGES=200

View File

@ -4,8 +4,8 @@ class ActivityPub::AccountBackfillService < BaseService
include JsonLdHelper
ENABLED = ENV['ACCOUNT_BACKFILL_ENABLED'].nil? || ENV['ACCOUNT_BACKFILL_ENABLED'] == 'true'
MAX_STATUSES = (ENV['ACCOUNT_BACKFILL_MAX_STATUSES'] || 500).to_i
MAX_PAGES = (ENV['ACCOUNT_BACKFILL_MAX_PAGES'] || 100).to_i
MAX_STATUSES = (ENV['ACCOUNT_BACKFILL_MAX_STATUSES'] || 1000).to_i
MAX_PAGES = (ENV['ACCOUNT_BACKFILL_MAX_PAGES'] || 200).to_i
def call(account, on_behalf_of: nil, request_id: nil)
return unless ENABLED