ono/resque-cleaner

resque web integration - no tab showing?

Closed this issue · 2 comments

I'm using

resque (1.19.0)
resque-cleaner (0.2.7)
resque-pool (0.2.0)

But when I try resque-web -F I do not see a cleaner tab in the interface, and http://localhost.local:5678/cleaner gives a 404

Is there something I need to do to enable this?

Do I need to include " require 'resque-cleaner' " in gems/resque-1.19.0/lib/resque.rb ?

ono commented

Do I need to include " require 'resque-cleaner' " in gems/resque-1.19.0/lib/resque.rb ?

Yes, you have to require 'resque-cleaner' somewhere. But I would not recommend resque.rb.

My recommendation is:

  1. Create a configuration file for resque-web
    touch [app_dir]/config/resque-web.rb
  2. Add the following line into the file
    require 'resque-cleaner'
  3. Then pass the file when you start resque-web
    e.g.
    % resque-web [app_dir]/config/resque-web.rb

Many thanks!

That works a charm.

Closing, with best wishes