Split SalmonWorker into smaller parts, move profile updating into another job
This commit is contained in:
parent
bafbf63fcc
commit
5442083b3c
9 changed files with 39 additions and 25 deletions
|
@ -3,6 +3,8 @@
|
|||
class Admin::SuspensionWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options queue: 'pull'
|
||||
|
||||
def perform(account_id)
|
||||
SuspendAccountService.new.call(Account.find(account_id))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue