Skip to content

Commit

Permalink
misc: Retry email jobs on Net::ReadTimeout error (#2126)
Browse files Browse the repository at this point in the history
## Description

This PR enable the auto-retry mechanism for email delivery in case of
`Net::ReadTimeout` network error
  • Loading branch information
vincent-pochet authored Jun 4, 2024
1 parent 8895740 commit 9680e47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/jobs/send_email_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ class SendEmailJob < ActionMailer::MailDeliveryJob

retry_on ActiveJob::DeserializationError, wait: :exponentially_longer, attempts: 6
retry_on LagoHttpClient::HttpError, wait: :exponentially_longer, attempts: 6
retry_on Net::ReadTimeout, wait: :exponentially_longer, attempts: 6
end

0 comments on commit 9680e47

Please sign in to comment.