]> git.openstreetmap.org Git - rails.git/commit
Send trace import result notification immediately
authorTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 20:45:07 +0000 (21:45 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 15 Jul 2019 20:45:07 +0000 (21:45 +0100)
commit5cb96cd1a2964463dfcb6083da95badecccb7f98
treec15b08ef5f692447c37cf9d1fe89307d974f3cf7
parentd2d3f2c9fdb76eb8193eaa079868504b8b9906c5
Send trace import result notification immediately

If we delay sending failure notifications then they will fail
because the trace will no longer exist.

As trace imports are running in the background anyway there
doesn't seem to be any good reason to defer the emails.

Fixes #2312
app/jobs/trace_importer_job.rb
test/jobs/trace_importer_job_test.rb