Change account deletion requests to spread out over time (#20222)
This commit is contained in:
parent
e98833748e
commit
5333447be0
4 changed files with 43 additions and 8 deletions
|
@ -3,7 +3,7 @@
|
|||
class Admin::AccountDeletionWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: 'pull'
|
||||
sidekiq_options queue: 'pull', lock: :until_executed
|
||||
|
||||
def perform(account_id)
|
||||
DeleteAccountService.new.call(Account.find(account_id), reserve_username: true, reserve_email: true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue