Search code examples
resqueairbrake

Resque + Airbrake, not seeing exceptions


I'm using the Airbrake support that comes with Resque:

require 'resque/failure/multiple'
require 'resque/failure/airbrake'
require 'resque/failure/redis'

Resque::Failure::Airbrake.configure do |config|
  config.api_key = 'xxxxx'
end

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Airbrake]
Resque::Failure.backend = Resque::Failure::Multiple

And trying out a simple job:

class Fail
  @queue = :propagation

  def self.perform
    raise "Fail!"
  end
end

I see the error in resque-web, but it never shows up in Airbrake. What could I be doing wrong?


Solution

  • Yeah, this is not that clear from the gem readme...

    If you're raising errors in development, you should try adding config.development_environments = [] to your Airbrake configuration.

    Cheers from Airbrake support! :)