Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

This commit is contained in:
Jeong Arm 2024-01-16 17:35:54 +09:00 committed by Claire
parent 9292d998fe
commit 90bb870680

View file

@ -7,7 +7,7 @@ class LinkCrawlWorker
def perform(status_id)
FetchLinkCardService.new.call(Status.find(status_id))
rescue ActiveRecord::RecordNotFound
rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordNotUnique
true
end
end