Delegate processing of incoming PuSH data to background workers

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

No files matched your search

+7
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