diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 15:43:33 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-15 15:43:33 +0100 |
commit | a91c3ef6cef0fe5a1645c043e7d4a5ef96e82c4f (patch) | |
tree | 248345f3b94384a9bb2a1243ebc0845ebe1af01e /app/workers | |
parent | cea28e0c1d91489756491f24a3e1376188d2bbf8 (diff) |
Delegate processing of incoming PuSH data to background workers
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/processing_worker.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/workers/processing_worker.rb b/app/workers/processing_worker.rb new file mode 100644 index 000000000..87ebbc5ea --- /dev/null +++ b/app/workers/processing_worker.rb @@ -0,0 +1,7 @@ +class ProcessingWorker + include Sidekiq::Worker + + def perform(account_id, body) + ProcessFeedService.new.call(body, Account.find(account_id)) + end +end |