method
enqueue_retry
rails latest stable - Class:
ActiveJob::LogSubscriber
enqueue_retry(event)public
No documentation available.
# File activejob/lib/active_job/log_subscriber.rb, line 105
def enqueue_retry(event)
job = event.payload[:job]
ex = event.payload[:error]
wait = event.payload[:wait]
info do
if ex
"Retrying #{job.class} (Job ID: #{job.job_id}) after #{job.executions} attempts in #{wait.to_i} seconds, due to a #{ex.class} (#{ex.message})."
else
"Retrying #{job.class} (Job ID: #{job.job_id}) after #{job.executions} attempts in #{wait.to_i} seconds."
end
end
end