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 StandardError => e
15 e.backtrace.each { |l| logger.info l }
16 UserMailer.gpx_failure(trace, "#{e}\n#{e.backtrace.join("\n")}").deliver