From 7dea6a23f7989c1c1693d29f0e0813213173e0f2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 18 Nov 2016 23:24:57 +0100 Subject: Move Salmon processing to background as well as PuSH --- app/workers/salmon_worker.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 app/workers/salmon_worker.rb (limited to 'app/workers') diff --git a/app/workers/salmon_worker.rb b/app/workers/salmon_worker.rb new file mode 100644 index 000000000..12b46e92f --- /dev/null +++ b/app/workers/salmon_worker.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class SalmonWorker + include Sidekiq::Worker + + def perform(account_id, body) + ProcessInteractionService.new.call(body, Account.find(account_id)) + end +end -- cgit