Skip to content

Commit

Permalink
switch from global QoS to per-consumer for #1233 & quorum queue compa…
Browse files Browse the repository at this point in the history
…tibility
  • Loading branch information
reidsunderland committed Sep 25, 2024
1 parent d5584a5 commit b2f281a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sarracenia/moth/amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ def getSetup(self) -> None:
#logger.info('getSetup connected to {}'.format(self.o['broker'].url.hostname) )

if self.o['prefetch'] != 0:
self.channel.basic_qos(0, self.o['prefetch'], True)
# using global False because RabbitMQ Quorum Queues don't support Global QoS, issue #1233
self.channel.basic_qos(0, self.o['prefetch'], False)

#FIXME: test self.first_setup and props['reset']... delete queue...
broker_str = self.o['broker'].url.geturl().replace(
Expand Down

0 comments on commit b2f281a

Please sign in to comment.