I'm a bit confused on what my configuration should look like to set up a topic exchange.
http://www.rabbitmq.com/tutorials/tutorial-five-python.html
This is what I'd like to accomplish:
Task1 -> send to QueueOne and QueueFirehose
Task2 -> sent to QueueTwo and QueueFirehose
then:
Task1 -> consume from QueueOne
Task2 -> consume from QueueTwo
TaskFirehose -> consume from QueueFirehose
I only want Task1 to consume from QueueOne and Task2 to consume from QueueTwo.
That problem now is that when Task1 and 2 run, they also drain QueueFirehose, and TaskFirehose task never executes.
Is there something wrong with my config, or am I misunderstanding something?
CELERY_QUEUES = {
"QueueOne": {
"exchange_type": "topic",
"binding_key": "pipeline.one",
},
"QueueTwo": {
"exchange_type": "topic",
"binding_key": "pipeline.two",
},
"QueueFirehose": {
"exchange_type": "topic",
"binding_key": "pipeline.#",
},
}
CELERY_ROUTES = {
"tasks.task1": {
"queue": 'QueueOne',
"routing_key": 'pipeline.one',
},
"tasks.task2": {
"queue": 'QueueTwo',
"routing_key": 'pipeline.two',
},
"tasks.firehose": {
'queue': 'QueueFirehose',
"routing_key": 'pipeline.#',
},
}