Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Sidekiq retries to 3 even for ActionMailer::MailDeliveryJob
`ActionMailer::MailDeliveryJob` inherits from `ActiveJob::Base` [1]; not from `ApplicationJob`. I suspect that's why the retry option in `ApplicationJob` didn't seem to be having any effect on jobs created by sending an email. It's hard to get a definitive answer, but I'm fairly confident setting the `retry` option on `Sidekiq.default_job_options` should apply globally to all jobs sent to Sidekiq, i.e. including `ActionMailer::MailDeliveryJob`. Fixes #143 (hopefully!🤞) [1]: https://github.com/rails/rails/blob/23938052acd773fa24068debe56cd892cbf8d868/actionmailer/lib/action_mailer/mail_delivery_job.rb#L13
- Loading branch information