Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

pull/28753/head
Jeong Arm 1 year ago committed by GitHub
parent f09035cc3f
commit f0abba67db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save