Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Show Tabs on resque-web #432

Open
melalj opened this issue Aug 6, 2014 · 5 comments
Open

Cannot Show Tabs on resque-web #432

melalj opened this issue Aug 6, 2014 · 5 comments

Comments

@melalj
Copy link

melalj commented Aug 6, 2014

I followed all instructions on the README to show up the "Delayed" and "Schedule" tabs on the resque-web interface, but nothing!

Here's the imported gems:

gem 'resque', '~> 1.25.2', require: 'resque/server'
gem 'resque-scheduler', '~> 2.5.5'
gem 'resque-web', require: 'resque_web'

To normally add scheduler to resque-web, I edited the ./config/initializers/resque_config.rb

require 'resque'
Resque.redis = "127.0.0.1:6379" # tell Resque where redis lives
# This will "normally" make the tabs show up.
require 'resque_scheduler' # the one provided on the README doesn't exist 'resque-scheduler'
require 'resque_scheduler/server' # the one provided on the README doesn't exist 'resque/scheduler/server'

To load resque-web, I have used a rails route:

ResqueWeb::Engine.eager_load!
mount ResqueWeb::Engine => "/resque_web"

But still, no effect on resque web interface... Any clue?

@zzet
Copy link

zzet commented Sep 1, 2014

+1 for me (gem 'resque-scheduler', '~> 3.0.0')

@zzet
Copy link

zzet commented Sep 1, 2014

@melalj this solve my problem

require 'resque/scheduler/server'

Awesome::Application.routes.draw do
  # ...
  constraint = lambda { ... }

  constraints constraint do
    mount Resque::Server.new, at: '/resque_web', as: :resque_web
  end
end

@jasonvasquez
Copy link

@zzet That worked for me too

+1

@mattgibson
Copy link

This issue is caused by a change in the architecture of Resque-web (https://github.com/resque/resque-web/blob/master/PLUGINS.md). I started porting the old Sinatra based code over to being a Rails engine, but have run into a snag: to test the engine, it needs to be mounted into a dummy Rails app, so the gemspec needs to include Rails and the resque-web engine. Trouble is, this also pulls in Minitest 5 as a dependency. Test::Unit seems to be incompatible with Minitest 5, so the tests will no longer run.

It looks like the only way forwards may be to port the test suite over to use Minitest. I'm happy to begin work on this if people agree it's the correct approach?

@mattgibson
Copy link

I've finished this work now, so the Delayed and Schedule tabs show up in the new Resque Web as they should if you use the code referred to in this PR: #464

I didn't do much more than port over the code as it stood with as few changes as possible, so comments and testing are appreciated. It probably needs a few more tests in there as a couple of places turned out to have quite sparse coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants