0
に失敗しました:ファラデーの接続は、だから私は、このエラーが表示され、接続に失敗しますrakeタスク
rake aborted!
Faraday::ConnectionFailed: execution expired
は、どのように私は私のrakeタスクを爆発し、ただのいずれか再試行するか、次の行にスキップしないようにこれを得ることができますか?
HERESに私のrakeタスク
require 'nokogiri'
require 'open-uri'
namespace :webtask do
task populate: :environment do
Event.all.each do |row|
tweventname = I18n.transliterate(row.eventname)
url = url here
doc = Nokogiri::HTML(open(url))
doc.css('.table__row--event').each do |tablerow|
table = tablerow.css('.table__cell__body--location').css('h4').text
next unless table == row.eventvenuename
tablerow.css('.table__cell__body--availability').each do |button|
buttonurl = button.css('a')[0]['href']
if buttonurl.include? '/checkout/external'
else
row.update(url: buttonurl)
end
end
end
end
end
end
回答ありがとうございますが、私はこれに誤りがあります。 –