소스 검색

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