Logo of AppSignal

Menu
Docs navigation

Resque

Resque is a Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later.

Support for Resque was added in AppSignal Ruby gem version 0.8.

The AppSignal Ruby gem extends the default job class (Resque::Job) if it is present. If your jobs inherit from this class no further action is required. If your jobs do not inherit from Resque::Job you need to add this line to your job classes:

1
extend Appsignal::Integrations::ResquePlugin

Resque and ActiveJob

When using ActiveJob, include Appsignal::Integrations::ResqueActiveJobPlugin instead:

1
2
3
4
5
6
7
8
class BrokenJob < ApplicationJob
  include Appsignal::Integrations::ResqueActiveJobPlugin
  queue_as :default

  def perform(*args)
    # ...
  end
end

AppSignal will then start monitoring these jobs without further configuration.