Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Incorrect code example removed #60

Open
wants to merge 1 commit into from

1 participant

Pankaj Tyagi
Pankaj Tyagi

See comment on issue #43.

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 Mar 7, 2013
  1. Pankaj Tyagi
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 9 deletions.
  1. +1 −9 README.textile
10 README.textile
View
@@ -99,15 +99,7 @@ You can also run by writing a simple @script/job_runner@, and invoking it extern
</code></pre>
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:
-
-<pre><code>
- 3.times do |n|
- worker = Delayed::Worker.new
- worker.name = 'worker-' + n.to_s
- worker.start
- end
-</code></pre>
+run multiple workers on per computer, but you must give each one a unique name.
Keep in mind that each worker will check the database at least every 5 seconds.
Something went wrong with that request. Please try again.