1 class TraceImporterJob < ApplicationJob
7 if gpx.actual_points.positive?
8 Notifier.gpx_success(trace, gpx.actual_points).deliver_later
10 Notifier.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver_later
13 rescue StandardError => e
15 e.backtrace.each { |l| logger.info l }
16 Notifier.gpx_failure(trace, e.to_s + "\n" + e.backtrace.join("\n")).deliver_later