Flowdock
method

halted_callback_hook

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: Callbacks
  • 1.0.0
  • 1.1.6
  • 1.2.6
  • 2.0.3
  • 2.1.0
  • 2.2.1
  • 2.3.8
  • 3.0.0
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • 4.1.8
  • 4.2.1
  • 4.2.7
  • 4.2.9
  • 5.0.0.1
  • 5.1.7
  • 5.2.3
  • 6.0.0
  • 6.1.3.1 (0)
  • 6.1.7.7 (0)
  • 7.0.0
  • 7.1.3.2
  • What's this?
halted_callback_hook(_filter, name) private

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/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
Register or log in to add new notes.