This is a small example project that demonstrates an issue with Honeybadger not reporting failed jobs on Solid Queue.
- Clone this repo and follow the Getting Started guide for Ruby on Rails up to step 4.1. Verify that you can run the app locally.
- Install Redis and start it on the default port, i.e.
brew install redis && brew services start redis - Configure Honeybadger by setting the
HONEYBADGER_API_KEYenvironment variable to your Honeybadger API key.
- Set
config.active_job.queue_adapterto:sidekiqinconfig/environments/development.rb. - Run
bin/rails serverto start the Rails server. - Run
bundle exec sidekiqto start the Sidekiq worker. - Go to http://localhost:3000/ and inspect your Honeybadger dashboard. You should see an error reported.
- Set
config.active_job.queue_adapterto:solid_queueinconfig/environments/development.rb. - Run
bin/rails serverto start the Rails server. - Run
bundle exec rake solid_queue:startto start the Solid Queue worker. - Go to http://localhost:3000/ and inspect your Honeybadger dashboard. Error won't be reported.