diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-16 17:39:55 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-09-16 17:46:24 +0300 |
commit | b6b5a7ac524a8c22d9ca162e53d752141f974651 (patch) | |
tree | 1c9adf873cedfea3bfd361e2580ff48b5d704913 /activejob/lib/active_job/logging.rb | |
parent | fa2001ace68767daa126c6aaf7b120ff021af07b (diff) | |
download | rails-b6b5a7ac524a8c22d9ca162e53d752141f974651.tar.gz rails-b6b5a7ac524a8c22d9ca162e53d752141f974651.tar.bz2 rails-b6b5a7ac524a8c22d9ca162e53d752141f974651.zip |
`retry_job` should publish `enqueue_retry.active_job` notification
Also this commit removes `:wait` from payload of
`retry_stopped.active_job`.
Related to https://github.com/rails/rails/pull/33751#discussion_r214140008
Follow up #33751
/cc @kaspth, @rafaelfranca
Diffstat (limited to 'activejob/lib/active_job/logging.rb')
-rw-r--r-- | activejob/lib/active_job/logging.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/lib/active_job/logging.rb b/activejob/lib/active_job/logging.rb index 96a3e6bf48..0abee4ed98 100644 --- a/activejob/lib/active_job/logging.rb +++ b/activejob/lib/active_job/logging.rb @@ -94,7 +94,7 @@ module ActiveJob wait = event.payload[:wait] error do - "Retrying #{job.class} in #{wait} seconds, due to a #{ex.class}. The original exception was #{ex.cause.inspect}." + "Retrying #{job.class} in #{wait.inspect} seconds, due to a #{ex&.class.inspect}. The original exception was #{ex&.cause.inspect}." end end |