Browse Source

Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

Jeong Arm 4 tháng trước cách đây
mục cha
commit
499bc716a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/workers/link_crawl_worker.rb

+ 1 - 1
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