diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-05-29 07:02:05 +0000 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-05-29 07:11:33 +0000 |
commit | d6702b7ab256a62b859e5f26650f2b320d5ed8c5 (patch) | |
tree | ebdbd092b31bbcb128cc02c8023b4c7d8e7cf1ad /activejob | |
parent | 56429f1e4dd6c3fd8fcdee4a7abc1eff1ea142ee (diff) | |
download | rails-d6702b7ab256a62b859e5f26650f2b320d5ed8c5.tar.gz rails-d6702b7ab256a62b859e5f26650f2b320d5ed8c5.tar.bz2 rails-d6702b7ab256a62b859e5f26650f2b320d5ed8c5.zip |
Fix name of the second parameter of block executed by `discard_on` and `retry_on`
[ci skip]
Follow up #32854 and ba07b5fc12a740d41d288bea6347f15f4948483c.
Diffstat (limited to 'activejob')
-rw-r--r-- | activejob/lib/active_job/exceptions.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activejob/lib/active_job/exceptions.rb b/activejob/lib/active_job/exceptions.rb index 31bbb18d7f..96b1e262f2 100644 --- a/activejob/lib/active_job/exceptions.rb +++ b/activejob/lib/active_job/exceptions.rb @@ -30,8 +30,8 @@ module ActiveJob # 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 @@ -67,8 +67,8 @@ module ActiveJob # # 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) |