fix: connect to existing named queue instead of creating anonymous queue
- Change AsyncMQClient to connect to existing persistent queue by name - Fix issue where DevOps Service created temporary anonymous queues instead of consuming from the correct named queue - This allows consuming the 42 backlogged messages in freeleaps.devops.reconciler.output queue - Change queue properties: exclusive=False, auto_delete=False, durable=True - Resolves the core issue where messages were split between persistent and temporary queues
This commit is contained in:
parent
4340949f57
commit
04acd78d78
@ -37,8 +37,10 @@ class AsyncMQClient:
|
||||
name=self.exchange_name, type="direct", auto_delete=False
|
||||
)
|
||||
|
||||
# Connect to existing named queue instead of creating anonymous queue
|
||||
# channel_name already contains the full queue name from environment variable
|
||||
self.queue = await self.channel.declare_queue(
|
||||
name=None, exclusive=True, auto_delete=True, durable=False
|
||||
name=self.channel_name, exclusive=False, auto_delete=False, durable=True
|
||||
)
|
||||
await self.queue.bind(
|
||||
exchange=self.exchange, routing_key=self.routing_key
|
||||
|
||||
Loading…
Reference in New Issue
Block a user