瀏覽代碼

Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

Jeong Arm 5 月之前
父節點
當前提交
499bc716a5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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