Reduce number of items in feeds, optimize regeneration worker slightly,
make regeneration worker unique, (only schedule/execute once at a time)
This commit is contained in:
parent
b1f3499c38
commit
82aaedec46
5 changed files with 20 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue