method

enqueue_retry

rails latest stable - Class: ActiveJob::Logging::LogSubscriber

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

enqueue_retry(event)
public

No documentation available.

# File activejob/lib/active_job/logging.rb, line 91
        def enqueue_retry(event)
          job = event.payload[:job]
          ex = event.payload[:error]
          wait = event.payload[:wait]

          info do
            if ex
              "Retrying #{job.class} in #{wait.to_i} seconds, due to a #{ex.class}."
            else
              "Retrying #{job.class} in #{wait.to_i} seconds."
            end
          end
        end