Delegate processing of incoming PuSH data to background workers
This commit is contained in:
parent
cea28e0c1d
commit
a91c3ef6ce
2 changed files with 8 additions and 1 deletions
7
app/workers/processing_worker.rb
Normal file
7
app/workers/processing_worker.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class ProcessingWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id, body)
|
||||
ProcessFeedService.new.call(body, Account.find(account_id))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue