module Appsignal::Integrations::ResquePlugin

def around_perform_resque_plugin(*_args)

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