0
0
Fork 0

Change account deletion requests to spread out over time (#20222)

This commit is contained in:
Claire 2022-11-09 14:08:19 +01:00 committed by GitHub
parent e98833748e
commit 5333447be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 8 deletions

View file

@ -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)