about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-12-21 06:16:17 +0100
committerGitHub <noreply@github.com>2018-12-21 06:16:17 +0100
commit240c1227671f5b6e269f82754cd5bacada07a005 (patch)
treee0fd60df16556410c66c2eeb24a524f6af428fff
parent6a2d030c2f5aec5cbfcfd88ab4ec4c12864e35ba (diff)
Skip mailer job retries when a record no longer exists (#9590)
Fix #8666
-rw-r--r--config/initializers/delivery_job.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/delivery_job.rb b/config/initializers/delivery_job.rb
new file mode 100644
index 000000000..cc2927272
--- /dev/null
+++ b/config/initializers/delivery_job.rb
@@ -0,0 +1,3 @@
+ActionMailer::DeliveryJob.class_eval do
+  discard_on ActiveJob::DeserializationError
+end