Ignore RecordNotUnique errors in LinkCrawlWorker (#28748)
parent
3837ec2227
commit
499bc716a5
|
@ -7,7 +7,7 @@ class LinkCrawlWorker
|
||||||
|
|
||||||
def perform(status_id)
|
def perform(status_id)
|
||||||
FetchLinkCardService.new.call(Status.find(status_id))
|
FetchLinkCardService.new.call(Status.find(status_id))
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound, ActiveRecord::RecordNotUnique
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue