Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

NOTE: This extension is no longer maintained, please try the **trinidad_worker_extension** instead ...

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 History.txt
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 trinidad_resque_extension.gemspec
README.md

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.

Something went wrong with that request. Please try again.