Skip to content
Browse files

Updated readme to show specifying the process name and clearing jobs …

…for a specific queue.
  • Loading branch information...
1 parent a317081 commit c5ccf8b5d0444781a63085c1203177190e10a005 @bracken bracken committed
Showing with 14 additions and 2 deletions.
  1. +14 −2 README.textile
View
16 README.textile
@@ -32,12 +32,18 @@ rescue LoadError
end
</pre>
-To install as a plugin:
+To install as a plugin: (main branch)
<pre>
script/plugin install git://github.com/collectiveidea/delayed_job.git
</pre>
+To install as a plugin: (this fork)
+
+<pre>
+script/plugin install git://github.com/brackenm/delayed_job.git
+</pre>
+
After delayed_job is installed, you will need to setup the backend.
h2. Backends
@@ -108,9 +114,14 @@ $ RAILS_ENV=production script/delayed_job stop
$ RAILS_ENV=production script/delayed_job -n 2 start
$ RAILS_ENV=production script/delayed_job stop
-# Specify the queue the worker should work out of with -q/--queue
+# Specify the queue the worker should work out of with -q/--queue=QUEUE_NAME
$ RAILS_ENV=production script/delayed_job start --queue=my_queue
$ RAILS_ENV=production script/delayed_job stop
+
+# Specify a name to append to the process name -p/--process-name=NAME
+# the process name will be "delayed_job_#{NAME}"
+$ RAILS_ENV=production script/delayed_job start -p custom_name
+$ RAILS_ENV=production script/delayed_job stop
</pre>
Workers can be running on any computer, as long as they have access to the database and their clock is in sync. Keep in mind that each worker will check the database at least every 5 seconds.
@@ -176,6 +187,7 @@ Delayed::Worker.queue = "my_queue"
h3. Cleaning up
You can invoke @rake jobs:clear@ to delete all jobs in the queue.
+To only delete jobs for a specific queue run @rake jobs:clear[queue_name]@.
h2. Mailing List

0 comments on commit c5ccf8b

Please sign in to comment.
Something went wrong with that request. Please try again.