Explorar el Código

Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)

Jeong Arm hace 5 meses
padre
commit
499bc716a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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