instance method
executions_for
Ruby on Rails 6.1.7.10
Since v6.0.6 PrivateSignature
executions_for(exceptions)
No documentation comment.
Parameters
-
exceptionsreq
Source
# File activejob/lib/active_job/exceptions.rb, line 157
def executions_for(exceptions)
if exception_executions
exception_executions[exceptions.to_s] = (exception_executions[exceptions.to_s] || 0) + 1
else
# Guard against jobs that were persisted before we started having individual executions counters per retry_on
executions
end
end
Defined in activejob/lib/active_job/exceptions.rb line 157
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveJob::Exceptions