Sha256: 345e76c57308efe6b2e098f2cdcd3f75c824d011249b7d23ef51ebfddbdb5e23

Contents?: true

Size: 613 Bytes

Versions: 38

Compression:

Stored size: 613 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-2.5.3-java lib/appsignal/integrations/resque.rb
appsignal-2.5.3 lib/appsignal/integrations/resque.rb
appsignal-2.5.3.alpha.2 lib/appsignal/integrations/resque.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/integrations/resque.rb
appsignal-2.5.3.alpha.1 lib/appsignal/integrations/resque.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/integrations/resque.rb
appsignal-2.5.2-java lib/appsignal/integrations/resque.rb
appsignal-2.5.2 lib/appsignal/integrations/resque.rb
appsignal-2.5.1-java lib/appsignal/integrations/resque.rb
appsignal-2.5.1 lib/appsignal/integrations/resque.rb
appsignal-2.5.1.beta.1-java lib/appsignal/integrations/resque.rb
appsignal-2.5.1.beta.1 lib/appsignal/integrations/resque.rb
appsignal-2.5.0-java lib/appsignal/integrations/resque.rb
appsignal-2.5.0 lib/appsignal/integrations/resque.rb
appsignal-2.5.0.beta.1-java lib/appsignal/integrations/resque.rb
appsignal-2.5.0.beta.1 lib/appsignal/integrations/resque.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/integrations/resque.rb
appsignal-2.5.0.alpha.1 lib/appsignal/integrations/resque.rb
appsignal-2.4.3 lib/appsignal/integrations/resque.rb
appsignal-2.4.2 lib/appsignal/integrations/resque.rb