method

halted_callback_hook

halted_callback_hook(_filter, name)
private

No documentation available.

# File activejob/lib/active_job/callbacks.rb, line 183
      def halted_callback_hook(_filter, name) # :nodoc:
        return super unless %(enqueue perform).include?(name.to_sym)
        callbacks = public_send("_#{name}_callbacks")

        if !self.class.skip_after_callbacks_if_terminated && callbacks.any? { |c| c.kind == :after }
          ActiveSupport::Deprecation.warn(<<~EOM)
            In Rails 6.2, `after_enqueue`/`after_perform` callbacks no longer run if `before_enqueue`/`before_perform` respectively halts with `throw :abort`.
            To enable this behavior, uncomment the `config.active_job.skip_after_callbacks_if_terminated` config
            in the new 6.1 framework defaults initializer.
          EOM
        end

        super
      end