Sha256: 4514babf573ea4f5785f9c44b485e1ba61cc278b1cdd31e236e0d6d55127f546

Contents?: true

Size: 644 Bytes

Versions: 126

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    # @api private
    module ResquePlugin
      # Do not use this file as a template for your own background processor
      # Resque is an exception to the rule and the code below causes the
      # extension to shut itself down after a single job.
      # see http://docs.appsignal.com/background-monitoring/custom.html
      def around_perform_resque_plugin(*_args)
        Appsignal.monitor_single_transaction(
          "perform_job.resque",
          :class => to_s,
          :method => "perform"
        ) do
          yield
        end
      end
    end
  end
end

Version data entries

126 entries across 126 versions & 1 rubygems

Version Path
appsignal-2.10.12 lib/appsignal/integrations/resque.rb
appsignal-2.10.12-java lib/appsignal/integrations/resque.rb
appsignal-2.10.11 lib/appsignal/integrations/resque.rb
appsignal-2.10.11-java lib/appsignal/integrations/resque.rb
appsignal-2.10.10 lib/appsignal/integrations/resque.rb
appsignal-2.10.10-java lib/appsignal/integrations/resque.rb
appsignal-2.11.0.alpha.2 lib/appsignal/integrations/resque.rb
appsignal-2.11.0.alpha.2-java lib/appsignal/integrations/resque.rb
appsignal-2.11.0.alpha.1 lib/appsignal/integrations/resque.rb
appsignal-2.11.0.alpha.1-java lib/appsignal/integrations/resque.rb
appsignal-2.10.9 lib/appsignal/integrations/resque.rb
appsignal-2.10.9-java lib/appsignal/integrations/resque.rb
appsignal-2.10.9.beta.1-java lib/appsignal/integrations/resque.rb
appsignal-2.10.9.beta.1 lib/appsignal/integrations/resque.rb
appsignal-2.10.8 lib/appsignal/integrations/resque.rb
appsignal-2.10.8-java lib/appsignal/integrations/resque.rb
appsignal-2.10.7-java lib/appsignal/integrations/resque.rb
appsignal-2.10.7 lib/appsignal/integrations/resque.rb
appsignal-2.10.6-java lib/appsignal/integrations/resque.rb
appsignal-2.10.6 lib/appsignal/integrations/resque.rb