method

instrument

rails latest stable - Class: ActiveJob::Exceptions

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.

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

No documentation available.

# 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