Repository is archived
No commit activity in last 3 years
No release in over 3 years
Trinidad extension to autoconfigure and launch Resque
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
>= 0
 Project Readme

Trinidad resque extension

Extension to initialize resque as a process under Trinidad's control and integrate resque's console. When Trinidad starts up it also starts the resque's workers and the console up.

http://github.com/defunkt/resque

Installation

jruby -S gem install trinidad_resque_extension

Configuration

Any of the configuration options that resque needs can be specified in the trinidad's configuration file:

---
  extensions:
    resque:
      queues: critical, normal, low   # resque workers
      count:  354                     # number of resque processes, by default 1
      redis_host: 'localhost:6379'    # where redis is running

By default, trinidad creates a worker called trinidad_resque if we don't specify anyone, so we can configure the extension through the command line with all the default options:

$ jruby -S trinidad -l resque

The resque console is deployed on /resque but we can disable it with the option disable_web:

---
 extensions:
   resque:
     disable_web: true

The extension tries to load the tasks from the directory lib/tasks but this parameter can be overrided with the option path:

---
  extensions:
    resque:
      path: 'tasks_dir'

Copyright

Copyright (c) 2011 David Calavera calavera@apache.org. See LICENSE for details.