0
0
Fork 0

Delegate processing of incoming PuSH data to background workers

This commit is contained in:
Eugen Rochko 2016-11-15 15:43:33 +01:00
parent cea28e0c1d
commit a91c3ef6ce
2 changed files with 8 additions and 1 deletions

View 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