Skip to content

Commit

Permalink
Fix name of the second parameter of block executed by discard_on an…
Browse files Browse the repository at this point in the history
…d `retry_on`

[ci skip]

Follow up rails#32854 and ba07b5f.
  • Loading branch information
bogdanvlviv committed May 29, 2018
1 parent 56429f1 commit d6702b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activejob/lib/active_job/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ module ClassMethods
# class RemoteServiceJob < ActiveJob::Base
# retry_on CustomAppException # defaults to 3s wait, 5 attempts
# retry_on AnotherCustomAppException, wait: ->(executions) { executions * 2 }
# retry_on(YetAnotherCustomAppException) do |job, exception|
# ExceptionNotifier.caught(exception)
# retry_on(YetAnotherCustomAppException) do |job, error|
# ExceptionNotifier.caught(error)
# end
# retry_on ActiveRecord::Deadlocked, wait: 5.seconds, attempts: 3
# retry_on Net::OpenTimeout, wait: :exponentially_longer, attempts: 10
Expand Down Expand Up @@ -67,8 +67,8 @@ def retry_on(exception, wait: 3.seconds, attempts: 5, queue: nil, priority: nil)
#
# class SearchIndexingJob < ActiveJob::Base
# discard_on ActiveJob::DeserializationError
# discard_on(CustomAppException) do |job, exception|
# ExceptionNotifier.caught(exception)
# discard_on(CustomAppException) do |job, error|
# ExceptionNotifier.caught(error)
# end
#
# def perform(record)
Expand Down

0 comments on commit d6702b7

Please sign in to comment.