README.md in advanced-sneakers-activejob-0.3.2 vs README.md in advanced-sneakers-activejob-0.3.3
- old
+ new
@@ -32,12 +32,17 @@
[Configure ActiveJob adapter](https://edgeguides.rubyonrails.org/active_job_basics.html#setting-the-backend)
```ruby
config.active_job.queue_adapter = :advanced_sneakers
```
-Run worker
+Run worker for all queues of ActiveJob
```sh
rake sneakers:active_job
+```
+
+Run worker for picked queues of ActiveJob
+```sh
+rake sneakers:active_job QUEUES=mailers,foo,bar
```
## Unrouted messages
If message is published before routing has been configured (e.g. by consumer), it might be lost. To mitigate this problem the adapter uses [:mandatory](http://rubybunny.info/articles/exchanges.html#publishing_messages_as_mandatory) option for publishing messages. RabbitMQ returns unrouted messages back and the publisher is able to handle them: