= relaxed-job
A blocking-pop job system in CouchDB
== Installation
gem install relaxed-job
== Define a Job
worker = RelaxedJob::Worker.new("http://localhost:5984/relaxed_job")
worker.job :samplejob do |args| raise "Error" unless args[:optional] == "argument" sleep 5 end
worker.start
== Queue a Job
queue = RelaxedJob::Queue.new("http://localhost:5984/relaxed_job")
queue.run :samplejob, :optional => "argument"
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 David Dollar. See LICENSE for details.