Documentation for remote and global tasks

This commit is contained in:
Nick Gauthier 2010-02-10 11:41:39 -05:00
parent 6544e9eec3
commit 7467a1b49f
1 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,26 @@ Run:
Hydra defaults to Single Core mode, so you may want to configure it
to use two (or more) of your cores if you have a multi-processing machine.
== Running Remote Tasks
You can run tasks across all of your remote workers easily with Hydra. In your rake file, add:
Hydra::RemoteTask.new('db:reset')
Then you can run:
rake hydra:remote:db:reset
== Running Global Tasks
A Global task is a task run locally *and* remotely. It's used in the same way as RemoteTask:
Hydra::GlobalTask.new('db:reset')
But it is invoked in a higher namespace:
rake hydra:db:reset
== Configuration
Place the config file in the main project directory as