Add Resque Support
* For it to work, it depends on Redis server is running. - To install: '$ apt-get install redis-server' - To execute: '$ redis-server' * To add new worker's tasks: - Create a new class, with the template below: class SampleWorker @queue = :sample_work def self.perform(params) end end - Enqueue new jobs: Resque.enqueue(SampleWorker, params) * To monitor jobs' status, access: '<rails_server>/resque'
Showing
- Gemfile 3 additions, 0 deletionsGemfile
- config/initializers/resque.rb 15 additions, 0 deletionsconfig/initializers/resque.rb
- config/resque.yml 7 additions, 0 deletionsconfig/resque.yml
- config/routes.rb 2 additions, 0 deletionsconfig/routes.rb
- lib/tasks/resque.rake 3 additions, 0 deletionslib/tasks/resque.rake
config/initializers/resque.rb
0 → 100644
config/resque.yml
0 → 100644
lib/tasks/resque.rake
0 → 100644
Please register or sign in to comment