Skip to content

Commit

Permalink
Skip mailer job retries when a record no longer exists (mastodon#9590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent e7aec49 commit df61f15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/delivery_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ActionMailer::DeliveryJob.class_eval do
discard_on ActiveJob::DeserializationError
end

0 comments on commit df61f15

Please sign in to comment.