README.md in backburner-0.4.6 vs README.md in backburner-1.0.0
- old
+ new
@@ -227,11 +227,11 @@
```
This will process jobs in all queues but you can also restrict processing to specific queues:
```ruby
-Backburner.work('newsletter-sender,push-notifier')
+Backburner.work('newsletter-sender', 'push-notifier')
```
The Backburner worker also exists as a rake task:
```ruby
@@ -239,11 +239,11 @@
```
so you can run:
```
-$ QUEUES=newsletter-sender,push-notifier rake backburner:work
+$ QUEUE=newsletter-sender,push-notifier rake backburner:work
```
You can also run the backburner binary for a convenient worker:
```
@@ -360,11 +360,11 @@
```
or through associated rake tasks with:
```
-$ QUEUES=newsletter-sender,push-message THREADS=2 GARBAGE=1000 rake backburner:threads_on_fork:work
+$ QUEUE=newsletter-sender,push-message THREADS=2 GARBAGE=1000 rake backburner:threads_on_fork:work
```
For more information on the threads_on_fork worker, check out the
[ThreadsOnFork Worker](https://github.com/nesquena/backburner/wiki/ThreadsOnFork-worker) documentation.
Additional workers such as individual `threaded` and `forking` strategies will hopefully be contributed in the future.
@@ -459,10 +459,10 @@
and then you can start the rake task with:
```bash
$ rake backburner:work
-$ QUEUES=newsletter-sender,push-notifier rake backburner:work
+$ QUEUE=newsletter-sender,push-notifier rake backburner:work
```
The best way to deploy these rake tasks is using a monitoring library. We suggest [God](https://github.com/mojombo/god/)
which watches processes and ensures their stability. A simple God recipe for Backburner can be found in
[examples/god](https://github.com/nesquena/backburner/blob/master/examples/god.rb).