method

instrument

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: Instrumentation
instrument(operation, payload = {}, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/instrumentation.rb, line 29
    def instrument(operation, payload = {}, &block) # :nodoc:
      payload[:job] = self
      payload[:adapter] = queue_adapter

      ActiveSupport::Notifications.instrument("#{operation}.active_job", payload) do |payload|
        value = block.call(payload) if block
        payload[:aborted] = @_halted_callback_hook_called if defined?(@_halted_callback_hook_called)
        @_halted_callback_hook_called = nil
        value
      end
    end
Register or log in to add new notes.