Skip to content

Commit

Permalink
Documentation about the backends
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jan 30, 2010
1 parent fc4f3f1 commit fb46714
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.textile
Expand Up @@ -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@:
Expand All @@ -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.
Expand Down

0 comments on commit fb46714

Please sign in to comment.