Show resque-scheduler tab in resque-web

I followed all the instructions for the repository repo scheduler to show the Delay 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 add the scheduler to resque-web, I edited ./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 used the rails route:

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

      

Still, no effect on the resque web interface ...

+3


source to share


2 answers


This issue is discussed .

Basically, it seems I need to use the built-in Sinatra application and not "resque-web". If you install the app like this:

require 'resque/scheduler/server'
mount Resque::Server.new, :at => '/resque'

      



Instead of this:

mount ResqueWeb::Engine => '/resque'

      

... it should work.

+8


source


I just made a gem that does this: https://github.com/mattgibson/resque-scheduler-web

Load it into your gemfile with:



gem 'resque-scheduler-web'

      

This should be all it takes to get the tabs to appear on install ResqueWeb::Engine

.

+1


source







All Articles