diff --git a/README.md b/README.md index 75e19231..d97dee07 100644 --- a/README.md +++ b/README.md @@ -933,7 +933,7 @@ Active Job can be configured to retry an infinite number of times, with a polyno ```ruby class ApplicationJob < ActiveJob::Base - retry_on StandardError, wait: :exponentially_longer, attempts: Float::INFINITY + retry_on StandardError, wait: :polynomially_longer, attempts: Float::INFINITY # ... end ``` @@ -953,7 +953,7 @@ When using `retry_on` with an infinite number of retries, exceptions will never ```ruby class ApplicationJob < ActiveJob::Base - retry_on StandardError, wait: :exponentially_longer, attempts: Float::INFINITY + retry_on StandardError, wait: :polynomially_longer, attempts: Float::INFINITY retry_on SpecialError, attempts: 5 do |_job, exception| Rails.error.report(exception) @@ -979,7 +979,7 @@ You can use an initializer to configure `ActionMailer::MailDeliveryJob`, for exa ```ruby # config/initializers/good_job.rb -ActionMailer::MailDeliveryJob.retry_on StandardError, wait: :exponentially_longer, attempts: Float::INFINITY +ActionMailer::MailDeliveryJob.retry_on StandardError, wait: :polynomially_longer, attempts: Float::INFINITY # With Sentry (or Bugsnag, Airbrake, Honeybadger, etc.) ActionMailer::MailDeliveryJob.around_perform do |_job, block|