Skip to content
Snippets Groups Projects
Forked from PortalMEC / portalmec
Source project has a limited visibility.
  • Bruno Nocera Zanette's avatar
    b4d3d217
    Add Resque Support · b4d3d217
    Bruno Nocera Zanette authored
    * 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'
    b4d3d217
    History
    Add Resque Support
    Bruno Nocera Zanette authored
    * 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'
This project manages its dependencies using Bundler. Learn more