Przeglądaj źródła

Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

Jeong Arm 5 miesięcy temu
rodzic
commit
499bc716a5
1 zmienionych plików z 1 dodań i 1 usunięć
  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