ddollar / relaxed-job

A job system based in CouchDB

This URL has Read+Write access

name age message
file .document Mon Nov 09 12:12:37 -0800 2009 Initial commit to relaxed-job. [ddollar]
file .gitignore Mon Nov 09 12:12:37 -0800 2009 Initial commit to relaxed-job. [ddollar]
file LICENSE Loading commit data...
file README.rdoc Mon Nov 09 14:08:39 -0800 2009 better docs [ddollar]
file Rakefile Mon Nov 09 14:08:58 -0800 2009 update summary [ddollar]
file VERSION
directory lib/
file relaxed-job.gemspec
directory spec/
README.rdoc

relaxed-job

A job system based in CouchDB

Installation

 # From Gemcutter
 gem install relaxed-job

Usage

 # Rakefile
 require 'relaxed_job/tasks'

 # queue a job
 queue = RelaxedJob::Queue.new('http://localhost:5984/relaxed_job')
 queue.enqueue my_object_that_responds_to_perform

 # queue with a different method
 queue.enqueue_with_method my_object, :do_work

 # queue with arguments
 queue.enqueue_with_method my_object, :do_work_with_args, 5, 7

 # run the worker
 $ rake jobs:work

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with Rakefile or VERSION.
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright © 2009 David Dollar. See LICENSE for details.