English 中文(简体)
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?

最佳回答

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! :)

问题回答

暂无回答




相关问题
Resque Scheduler on Heroku... Do it remotely?

I m adding Resque-Scheduler in my app on Heroku So... I need ONE alone and distinct worker acting as the scheduler and many doing the jobs. This is how I ve done it : I ve a distinct Heroku App ...

Net::SSH connection fails from inside resque job

I have an app that sets creates EC2 instances - I have a resque task that will configure the server (via ssh) once it s up and running: Net::SSH.start(server.dns_name, root , :keys => [ ~/....

What s the best way to write Resque-related specs in RSpec?

What s the best way to write Resque-related specs in RSpec without stubbing the former? We currently use the following helper: @dir = File.dirname(File.expand_path(__FILE__)) def start_redis `...

Have Rails 2.3.x ignore the i18n gem

I have a Rails 2.3.5 project that uses the localization features of Rails. I also happen to have Rails 3 beta installed (which depends on the i18n gem). Rails 2.3.5 will happily handle localization on ...

Guide to migrate from delayed_job to resque?

Does anyone have or know of a guide for how to migrate from Delayed Job to Resque? I can t find any on Google and figure I must not be the first one doing this. Just a general list of changes that ...

How to use resque-scheduler and resque-status together?

I have resque-scheduler working fine in a rails app. Now I need to be able to track status and remove jobs from the queue. I had a brief look at resque-status and, from what I saw, if I could get it ...

热门标签