fix: discard deserialization error as there are raised from AR not found

This commit is contained in:
simon lehericey 2024-03-29 11:33:57 +01:00
parent 4da36531d4
commit dd6c558541
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -1,4 +1,6 @@
class PriorizedMailDeliveryJob < ActionMailer::MailDeliveryJob
discard_on ActiveJob::DeserializationError
def queue_name
mailer, action_name = @arguments
if mailer.constantize.critical_email?(action_name)