github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

kristjan / async_observer forked from kr/async-observer

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 27
    • 5
  • Source
  • Commits
  • Network (5)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • web
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin that provides deep integration with Beanstalk. — Read more

  cancel

http://async-observer.rubyforge.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' into pidfile 
Kristjan Petursson (author)
Thu Nov 12 17:58:24 -0800 2009
commit  d88b28b948a4103efe6e46762355aeebebd319d4
tree    bb7a50bde2330f616ff3be570b2c746cf1b565ff
parent  9cde3424d824e4841378e140f723a57cf7d736cc parent  3ef5800ba5bec344b354a244b007b59c8609c696
async_observer /
name age
history
message
file .gitignore Fri Aug 01 17:53:39 -0700 2008 Make sure we are deriving the MysqlAdapter from... [Eric Lindvall]
file COPYING Thu Dec 13 21:13:13 -0800 2007 Add copyright notice and license. git-svn-id:... [kr]
file README Mon Sep 14 18:59:53 -0700 2009 add note on killing a worker [taf2]
directory bin/ Mon Sep 14 19:18:33 -0700 2009 add better error handling for dropped pid files [taf2]
file init.rb Thu Dec 13 16:08:20 -0800 2007 Initial commit. git-svn-id: svn+ssh://rubyfor... [kr]
directory lib/ Thu Nov 12 17:58:24 -0800 2009 Merge branch 'master' into pidfile [Kristjan Petursson]
README
This is Async Observer -- a Rails plugin that provides deep integration with
Beanstalk.

For more information, see http://async-observer.rubyforge.org/.

For more information on Beanstalk, see its home page at
http://xph.us/software/beanstalkd/.


Worker Options:
-d                                : daemonize
--pid [path to pidfile]           : drop a pid file to a path
-e [test,production,development]  : set the rails environment

Example Usage:

start 3 workers
  ./vendor/plugins/async_observer/bin/worker -d --pid log/worker1.pid -e production
  ./vendor/plugins/async_observer/bin/worker -d --pid log/worker2.pid -e production
  ./vendor/plugins/async_observer/bin/worker -d --pid log/worker3.pid -e production

kill one
  kill -s INT `cat log/worker1.pid`

Remember kill a worker will cause it to go into a shutdown phase.
Run the above again to kill immediately, but remember all jobs in
the workers queue is lost at that point...
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server