Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the Queue can not bind the routing key in kombu 4.6.11 ? #2191

Open
honghh2018 opened this issue Nov 16, 2024 · 0 comments
Open

Why the Queue can not bind the routing key in kombu 4.6.11 ? #2191

honghh2018 opened this issue Nov 16, 2024 · 0 comments

Comments

@honghh2018
Copy link

Hi developer,

 the queue name was normal_queue for NORMAL_QUEUE_NAME
the NORMAL_ROUTING_KEY value was normal_routing_key 
but the web show the normal_queue had not the routing key

image

the code lying below:
 Queue(RabbitNameConfig.NORMAL_QUEUE_NAME,
                              self.exchange_normal,
                              routing_key=RabbitNameConfig.NORMAL_ROUTING_KEY,
                              arguments={
                                  'x-dead-letter-exchange': RabbitNameConfig.DLX_EXCHANGE_NAME,  
                                  'x-dead-letter-routing-key': RabbitNameConfig.DLX_ROUTING_KEY,  
                                  # 'x-message-ttl':10000   # 
                                  'x-message-ttl': int(
                                      USER_TRANS_LIMIT_CLASS.TRANS_UNPAY_TIMEOUT_CLOSE_SECOND * 1000)
                                 
                              })

Is it the Queue can not bind the exchange and routing key?
and the version 4.6.11 can set the arguements with
arguments={
'x-dead-letter-exchange': RabbitNameConfig.DLX_EXCHANGE_NAME,
'x-dead-letter-routing-key': RabbitNameConfig.DLX_ROUTING_KEY,
# 'x-message-ttl':10000 #
'x-message-ttl': int(
USER_TRANS_LIMIT_CLASS.TRANS_UNPAY_TIMEOUT_CLOSE_SECOND * 1000)

                              }

?
Any advice would be appreciated
Best,
hanhuihong

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

No branches or pull requests

1 participant