Move merging/unmerging of timelines into background. Move blocking into
background as well since it's a computationally expensive
This commit is contained in:
parent
f392030ab8
commit
cca82bf0a2
7 changed files with 45 additions and 19 deletions
9
app/workers/merge_worker.rb
Normal file
9
app/workers/merge_worker.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MergeWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(from_account_id, into_account_id)
|
||||
FeedManager.instance.merge_into_timeline(Account.find(from_account_id), Account.find(into_account_id))
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue