feat: wip for multiple tenants - for pkg build
This commit is contained in:
parent
6e7c4ccb7b
commit
7b6408e0de
@ -112,7 +112,7 @@ class TenantQueueManager(BaseQueueManager):
|
||||
self.tenant_events_dlq_name = self.get_tenant_events_dlq_name(settings)
|
||||
|
||||
def initialize_queues(self) -> None:
|
||||
self.channel.exchange_declare(exchange=self.tenant_exchange_name, exchange_type="topic")
|
||||
self.channel.exchange_declare(exchange=self.tenant_exchange_name, exchange_type="topic", durable=True)
|
||||
|
||||
self.channel.queue_declare(
|
||||
queue=self.tenant_created_queue_name,
|
||||
@ -312,7 +312,7 @@ class ServiceQueueManager(BaseQueueManager):
|
||||
on_message_callback = self._make_on_message_callback(message_processor, tenant_id)
|
||||
on_message_callback(self.channel, method_frame, properties, body)
|
||||
else:
|
||||
# logger.debug(f"No message returned for queue {queue_name}")
|
||||
logger.debug(f"No message returned for queue {queue_name}")
|
||||
# time.sleep(self.connection_sleep)
|
||||
time.sleep(0.1)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user