fix: discard deserialization error as there are raised from AR not found
This commit is contained in:
parent
4da36531d4
commit
dd6c558541
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
class PriorizedMailDeliveryJob < ActionMailer::MailDeliveryJob
|
class PriorizedMailDeliveryJob < ActionMailer::MailDeliveryJob
|
||||||
|
discard_on ActiveJob::DeserializationError
|
||||||
|
|
||||||
def queue_name
|
def queue_name
|
||||||
mailer, action_name = @arguments
|
mailer, action_name = @arguments
|
||||||
if mailer.constantize.critical_email?(action_name)
|
if mailer.constantize.critical_email?(action_name)
|
||||||
|
|
Loading…
Add table
Reference in a new issue