Sha256: 5e3160239b2f065d8511145184a25482cadc3c0eb4fb2f137dbada2b04383414

Contents?: true

Size: 494 Bytes

Versions: 150

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  class Hooks
    # @api private
    class QueHook < Appsignal::Hooks::Hook
      register :que

      def dependencies_present?
        defined?(::Que::Job)
      end

      def install
        require "appsignal/integrations/que"
        ::Que::Job.prepend Appsignal::Integrations::QuePlugin

        ::Que.error_notifier = proc do |error, _job|
          Appsignal::Transaction.current.set_error(error)
        end
      end
    end
  end
end

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
appsignal-4.3.3-java lib/appsignal/hooks/que.rb
appsignal-4.3.3 lib/appsignal/hooks/que.rb
appsignal-4.3.2-java lib/appsignal/hooks/que.rb
appsignal-4.3.2 lib/appsignal/hooks/que.rb
appsignal-4.3.1-java lib/appsignal/hooks/que.rb
appsignal-4.3.1 lib/appsignal/hooks/que.rb
appsignal-4.3.0-java lib/appsignal/hooks/que.rb
appsignal-4.3.0 lib/appsignal/hooks/que.rb
appsignal-4.2.3-java lib/appsignal/hooks/que.rb
appsignal-4.2.3 lib/appsignal/hooks/que.rb
appsignal-4.2.2-java lib/appsignal/hooks/que.rb
appsignal-4.2.2 lib/appsignal/hooks/que.rb
appsignal-4.2.1-java lib/appsignal/hooks/que.rb
appsignal-4.2.1 lib/appsignal/hooks/que.rb
appsignal-4.2.0-java lib/appsignal/hooks/que.rb
appsignal-4.2.0 lib/appsignal/hooks/que.rb
appsignal-4.1.3-java lib/appsignal/hooks/que.rb
appsignal-4.1.3 lib/appsignal/hooks/que.rb
appsignal-4.1.2-java lib/appsignal/hooks/que.rb
appsignal-4.1.2 lib/appsignal/hooks/que.rb