Permalink
Browse files

Documentation about the backends

  • Loading branch information...
1 parent fc4f3f1 commit fb46714a589c696c4206e2e33c15a99a58ff68c1 @bkeepers bkeepers committed Jan 30, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 README.textile
View
@@ -39,11 +39,22 @@ script/plugin install git://github.com/collectiveidea/delayed_job.git
After delayed_job is installed, run:
+h2. Backends
+
+delayed_job supports multiple backends for storing the job queue. The default is Active Record, which requires a jobs table.
+
<pre>
script/generate delayed_job
rake db:migrate
</pre>
+You can change the backend in an initializer:
+
+<pre>
+# config/initializers/delayed_job.rb
+Delayed::Worker.backend = :mongo
+</pre>
+
h2. Upgrading to 1.8
If you are upgrading from a previous release, you will need to generate the new @script/delayed_job@:
@@ -52,6 +63,8 @@ If you are upgrading from a previous release, you will need to generate the new
script/generate delayed_job --skip-migration
</pre>
+Known Issues: script/delayed_job does not work properly with anything besides the Active Record backend. That will be resolved before the next gem release.
+
h2. Queuing Jobs
Call @#send_later(method, params)@ on any object and it will be processed in the background.

0 comments on commit fb46714

Please sign in to comment.