instance method instrument

Ruby on Rails 6.0.6

Since v6.0.6 Last seen in v6.0.6 Private

Signature

instrument(name, error: nil, wait: nil, &block)

No documentation comment.

Parameters

name req
error key = nil
wait key = nil
block block
Source
# File activejob/lib/active_job/exceptions.rb, line 142
      def instrument(name, error: nil, wait: nil, &block)
        payload = { job: self, adapter: self.class.queue_adapter, error: error, wait: wait }

        ActiveSupport::Notifications.instrument("#{name}.active_job", payload, &block)
      end

Defined in activejob/lib/active_job/exceptions.rb line 142 · 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