Browse Source

Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

pull/1337/head
Jeong Arm 2 years ago committed by Claire
parent
commit
499bc716a5
  1. 2
      app/workers/link_crawl_worker.rb

2
app/workers/link_crawl_worker.rb

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