1 class TraceImporterJob < ApplicationJob
7 if gpx.actual_points.positive?
8 UserMailer.gpx_success(trace, gpx.actual_points).deliver
10 UserMailer.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver
13 rescue XML::Error => e
15 UserMailer.gpx_failure(trace, e).deliver
17 rescue StandardError => e
19 e.backtrace.each { |l| logger.info l }
20 UserMailer.gpx_failure(trace, "#{e}\n#{e.backtrace.join("\n")}").deliver