Split SalmonWorker into smaller parts, move profile updating into another job
This commit is contained in:
parent
bafbf63fcc
commit
5442083b3c
9 changed files with 39 additions and 25 deletions
|
@ -4,10 +4,7 @@ class DistributionWorker < ApplicationWorker
|
|||
include Sidekiq::Worker
|
||||
|
||||
def perform(status_id)
|
||||
status = Status.find(status_id)
|
||||
|
||||
FanOutOnWriteService.new.call(status)
|
||||
WarmCacheService.new.call(status)
|
||||
FanOutOnWriteService.new.call(Status.find(status_id))
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
info("Couldn't find the status")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue