Adding some rescues to workers, e.g. don't fail removal job when status can't be found in the first place (already removed)
This commit is contained in:
@ -5,5 +5,7 @@ class DistributionWorker
|
||||
|
||||
def perform(status_id)
|
||||
FanOutOnWriteService.new.call(Status.find(status_id))
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user