From bb4d1eb2e86ec6227c18df29ce0f0f25ae2f6ee3 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 8 Nov 2016 02:08:32 +0100 Subject: Improve feed regeneration --- app/workers/regeneration_worker.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/workers/regeneration_worker.rb (limited to 'app/workers') diff --git a/app/workers/regeneration_worker.rb b/app/workers/regeneration_worker.rb new file mode 100644 index 000000000..f0ed01d71 --- /dev/null +++ b/app/workers/regeneration_worker.rb @@ -0,0 +1,7 @@ +class RegenerationWorker + include Sidekiq::Worker + + def perform(account_id, timeline_type) + PrecomputeFeedService.new.call(timeline_type, Account.find(account_id)) + end +end -- cgit