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 => ex
15 ex.backtrace.each { |l| logger.info l }
16 Notifier.gpx_failure(trace, ex.to_s + "\n" + ex.backtrace.join("\n")).deliver_later