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:
@@ -14,5 +14,7 @@ class Pubsubhubbub::DistributionWorker
|
||||
Subscription.where(account: account).active.select('id').find_each do |subscription|
|
||||
Pubsubhubbub::DeliveryWorker.perform_async(subscription.id, payload)
|
||||
end
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
true
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user