Skip to content
Snippets Groups Projects
Commit e31a4363 authored by Art's avatar Art :lizard:
Browse files

Update README.md

parent 77c0f9dd
Branches
No related tags found
No related merge requests found
...@@ -88,13 +88,15 @@ You are done after creating queues for each of your tasks. Don't need anything e ...@@ -88,13 +88,15 @@ You are done after creating queues for each of your tasks. Don't need anything e
* Decide which tasks should the client use. Let's say these are `task1` and `task2` (you should have the corresponding queues already). * Decide which tasks should the client use. Let's say these are `task1` and `task2` (you should have the corresponding queues already).
* For each of the tasks, create a new binding for the exchange `client.out`, with `routing key == queue name == task name` * For each of the tasks, create a new binding for the exchange `client.out`, with `routing key == queue name == task name`
* e.g. `exchange = client.out`, `routing key = task1`, `queue = task1` * e.g. `exchange = client.out`, `routing key = task1`, `queue = task1`
* User permissions: * RabbitMQ user permissions:
* Configure: empty string (no config permissions) * Configure: empty string (no config permissions)
* Write: `^client.out$` (replace with the name of your exchange) * Write: `^client.out$` (replace with the name of your exchange)
* Read: empty string (no read permissions, RPC results/replies will still work) * Read: empty string (no read permissions, RPC results/replies will still work)
* Pikatasks settings:
* ```pikatasks.settings.CLIENT_EXCHANGE_NAME = "client.out"``` (replace `client.out` with you know what`)
##### Worker: ##### Worker:
* User permissions: * RabbitMQ user permissions:
* Configure: empty string (no config permissions) * Configure: empty string (no config permissions)
* Write: `.*` (everything) or `^amq.default$` (`amq.default` is required to send "direct reply-to") * Write: `.*` (everything) or `^amq.default$` (`amq.default` is required to send "direct reply-to")
* Read: `^(task1|task2)$`, replace `taskN` with whatever your task names are * Read: `^(task1|task2)$`, replace `taskN` with whatever your task names are
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment