Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Added multiple worker example to README #43

merged 1 commit into from

3 participants


Is this the correct way of naming workers? Thanks!

@tobi tobi merged commit d9165b9 into tobi:master

This actually does not work. The first worker will block the next until it receives a kill (TERM or INT) and then the next one starts. This is not multiple works but running three one after the other. Please remove this incorrect documentation as it will cause people to waste time trying it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 1, 2011
  1. @lorensr

    added multiple worker example

    lorensr authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +10 −1 README.textile
11 README.textile
@@ -99,7 +99,16 @@ You can also run by writing a simple @script/job_runner@, and invoking it extern
Workers can be running on any computer, as long as they have access to the database and their clock is in sync. You can even
-run multiple workers on per computer, but you must give each one a unique name. (TODO: put in an example)
+run multiple workers on per computer, but you must give each one a unique name:
+ 3.times do |n|
+ worker =
+ = 'worker-' + n.to_s
+ worker.start
+ end
Keep in mind that each worker will check the database at least every 5 seconds.
Note: The rake task will exit if the database has any network connectivity problems.
Something went wrong with that request. Please try again.