From fb46714a589c696c4206e2e33c15a99a58ff68c1 Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Sat, 30 Jan 2010 09:31:53 -0500 Subject: [PATCH] Documentation about the backends --- README.textile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.textile b/README.textile index 2a76ed2fb..6cfb15730 100644 --- a/README.textile +++ b/README.textile @@ -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. +
 script/generate delayed_job
 rake db:migrate
 
+You can change the backend in an initializer: + +
+# config/initializers/delayed_job.rb
+Delayed::Worker.backend = :mongo
+
+ 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 +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.