about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-08 02:08:32 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-08 02:08:32 +0100
commitbb4d1eb2e86ec6227c18df29ce0f0f25ae2f6ee3 (patch)
treee0230cf6dc1913631aa333cc1b0724dfcc9863aa /app/workers
parent096bfbad966e7dbd0ea2d71b12d1f411daabdb72 (diff)
Improve feed regeneration
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/regeneration_worker.rb7
1 files changed, 7 insertions, 0 deletions
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