Delegate processing of incoming PuSH data to background workers
This commit is contained in:
1 parent
cea28e0c1d
commit
a91c3ef6ce
2 files changed
+8
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
class ProcessingWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id, body)
|
||||
ProcessFeedService.new.call(body, Account.find(account_id))
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user