README.md in advanced-sneakers-activejob-0.3.3 vs README.md in advanced-sneakers-activejob-0.3.4

- old
+ new

@@ -39,10 +39,16 @@ rake sneakers:active_job ``` Run worker for picked queues of ActiveJob ```sh -rake sneakers:active_job QUEUES=mailers,foo,bar +QUEUES=mailers,foo,bar rake sneakers:active_job +``` + +Wildcards are supported for queues names with "words" (separator is `.`). Algorithm is similar to the way the [topic exchange matches routing keys](https://www.rabbitmq.com/tutorials/tutorial-five-python.html). `*` (star) substitutes for exactly one word. `#` (hash) substitutes for zero or more words + +```sh +QUEUES=mailers,index.*,telemetery.# rake sneakers:active_job ``` ## 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: