SAAS-56: RabbitMQ virtual host support
-Add support for specifying vhost in config files
This commit is contained in:
parent
2f1033ecb8
commit
21643a3734
9 changed files with 9 additions and 3 deletions
|
@ -39,7 +39,7 @@ class AirtimeNotifier(Notifier):
|
|||
try:
|
||||
schedule_exchange = Exchange("airtime-media-monitor", "direct", durable=True, auto_delete=True)
|
||||
schedule_queue = Queue("media-monitor", exchange=schedule_exchange, key="filesystem")
|
||||
self.connection = BrokerConnection(self.config.cfg["rabbitmq_host"], self.config.cfg["rabbitmq_user"], self.config.cfg["rabbitmq_password"], "/")
|
||||
self.connection = BrokerConnection(self.config.cfg["rabbitmq_host"], self.config.cfg["rabbitmq_user"], self.config.cfg["rabbitmq_password"], self.config.cfg["rabbitmq_vhost"])
|
||||
channel = self.connection.channel()
|
||||
consumer = Consumer(channel, schedule_queue)
|
||||
consumer.register_callback(self.handle_message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue