about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-04 13:58:34 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-04 13:58:34 +0200
commit82aaedec467815c2947a11651d5216bb88ce4038 (patch)
tree5ec8971df2455280bc3ca41e971a8dde4292b6f0 /app/workers
parentb1f3499c3806682375a0496f99b4bc908d89cd84 (diff)
Reduce number of items in feeds, optimize regeneration worker slightly,
make regeneration worker unique, (only schedule/execute once at a time)
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/regeneration_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/regeneration_worker.rb b/app/workers/regeneration_worker.rb
index 82665b581..da8b845f6 100644
--- a/app/workers/regeneration_worker.rb
+++ b/app/workers/regeneration_worker.rb
@@ -3,7 +3,7 @@
 class RegenerationWorker
   include Sidekiq::Worker
 
-  sidekiq_options queue: 'pull', backtrace: true
+  sidekiq_options queue: 'pull', backtrace: true, unique: :until_executed
 
   def perform(account_id, _ = :home)
     PrecomputeFeedService.new.call(:home, Account.find(account_id))