Sha256: d680c5105ca0a66e022f679331ab5f9257a2a2bef27cac5ab5c7ec9f68d5aa85

Contents?: true

Size: 599 Bytes

Versions: 27

Compression:

Stored size: 599 Bytes

Contents

module Appsignal
  module Integrations
    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 => self.to_s,
          :method => 'perform'
        ) do
          yield
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
appsignal-2.0.6 lib/appsignal/integrations/resque.rb
appsignal-2.0.5 lib/appsignal/integrations/resque.rb
appsignal-2.0.5.beta.1 lib/appsignal/integrations/resque.rb
appsignal-2.1.0.alpha.3 lib/appsignal/integrations/resque.rb
appsignal-2.1.0.alpha.2 lib/appsignal/integrations/resque.rb
appsignal-2.1.0.alpha.1 lib/appsignal/integrations/resque.rb
appsignal-2.0.4 lib/appsignal/integrations/resque.rb
appsignal-2.0.3 lib/appsignal/integrations/resque.rb
appsignal-2.0.2 lib/appsignal/integrations/resque.rb
appsignal-2.0.1 lib/appsignal/integrations/resque.rb
appsignal-2.0.0 lib/appsignal/integrations/resque.rb
appsignal-2.0.0.beta.1 lib/appsignal/integrations/resque.rb
appsignal-1.4.0.beta.1 lib/appsignal/integrations/resque.rb
appsignal-1.3.6 lib/appsignal/integrations/resque.rb
appsignal-1.3.6.beta.1 lib/appsignal/integrations/resque.rb
appsignal-1.3.5 lib/appsignal/integrations/resque.rb
appsignal-1.3.5.beta.1 lib/appsignal/integrations/resque.rb
appsignal-1.3.4 lib/appsignal/integrations/resque.rb
appsignal-1.3.3 lib/appsignal/integrations/resque.rb
appsignal-1.4.0.alpha.2 lib/appsignal/integrations/resque.rb