instance method executions_for

Ruby on Rails 8.0.4

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

executions_for(exceptions)

No documentation comment.

Parameters

exceptions req
Source
# File activejob/lib/active_job/exceptions.rb, line 188
      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 188 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveJob::Exceptions

Type at least 2 characters to search.

↑↓ navigate · open · esc close