Add delay to profile updates to debounce them (#34137)

This commit is contained in:
KMY 2025-04-03 06:57:54 +09:00
parent 577361ca9a
commit bccc4131a3
11 changed files with 15 additions and 18 deletions

View file

@ -1,6 +1,8 @@
# frozen_string_literal: true
class ActivityPub::UpdateDistributionWorker < ActivityPub::RawDistributionWorker
DEBOUNCE_DELAY = 5.seconds
sidekiq_options queue: 'push', lock: :until_executed, lock_ttl: 1.day.to_i
# Distribute an profile update to servers that might have a copy