Improve feed regeneration
This commit is contained in:
parent
096bfbad96
commit
bb4d1eb2e8
5 changed files with 15 additions and 11 deletions
7
app/workers/regeneration_worker.rb
Normal file
7
app/workers/regeneration_worker.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue