Skip to content

Inherit queue type for retry and error queues#38

Merged
michaelklishin merged 1 commit intoruby-amqp:mainfrom
chris72205:main
Jan 9, 2026
Merged

Inherit queue type for retry and error queues#38
michaelklishin merged 1 commit intoruby-amqp:mainfrom
chris72205:main

Conversation

@chris72205
Copy link
Contributor

I can configure a queue as type quorum but this was not reflected in the -error and -retry queues provided by the Maxretry handler. This PR allows setting the queue type based on the x-queue-type argument set in the queue options:

from_queue 'queue-name',
               exchange_options: { durable: true, type: :topic },
               queue_options: { durable: true, arguments: { 'x-queue-type': 'quorum' } },
               routing_key: 'example.key',
               exchange: 'exchange-name'

I also added the ability to specify a specific type for each just in case sharing the type of the queue is not desired.

@michaelklishin
Copy link
Member

@chris72205 thank you, you have proactively addressed my key concern: what to do if the user does not want to use quorum queues for everything (a non-replicated classic queue can be a reasonable choice for the "plumbing" queues).

@michaelklishin michaelklishin added this to the 3.3.0 milestone Jan 9, 2026
@michaelklishin michaelklishin merged commit 6187577 into ruby-amqp:main Jan 9, 2026
4 checks passed
@michaelklishin
Copy link
Member

I will update the change log to credit @chris72205 later today.

Thank you for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants