Add delay to profile updates to debounce them (#34137)
This commit is contained in:
parent
577361ca9a
commit
bccc4131a3
11 changed files with 15 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue