0
0
Fork 0

Fix empty home feed before first follow has finished processing (#16152)

Change queue of merge worker from pull to default
This commit is contained in:
Eugen Rochko 2021-05-04 04:45:08 +02:00 committed by GitHub
parent 8c44b723bb
commit fab65848d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 5 deletions

View file

@ -3,11 +3,11 @@
class MergeWorker
include Sidekiq::Worker
sidekiq_options queue: 'pull'
def perform(from_account_id, into_account_id)
FeedManager.instance.merge_into_home(Account.find(from_account_id), Account.find(into_account_id))
rescue ActiveRecord::RecordNotFound
true
ensure
Redis.current.del("account:#{into_account_id}:regeneration")
end
end