Skip to content

Commit

Permalink
Support rake toro in place of rake toro:start
Browse files Browse the repository at this point in the history
  • Loading branch information
tombenner committed Apr 23, 2014
1 parent d5907a7 commit a195f15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ MyWorker.perform_async(15)

Start Toro in the root directory of your Rails app:
```bash
rake toro:start
rake toro
```

Basics
Expand All @@ -123,21 +123,21 @@ end
To set a process's queue, use `-q`:

```bash
rake toro:start -- -q users
rake toro -- -q users
```

Or specify multiple queues:

```bash
rake toro:start -- -q users -q comments
rake toro -- -q users -q comments
```

### Concurrency

To specify a process's concurrency (how many jobs it can run simultaneously), use `-c`:

```bash
rake toro:start -- -c 10
rake toro -- -c 10
```

### Scheduled Jobs
Expand Down
2 changes: 2 additions & 0 deletions lib/tasks/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
Toro::Database.down
end
end

task :toro => 'toro:start'

0 comments on commit a195f15

Please sign in to comment.