【发布时间】:2018-11-29 01:10:13
【问题描述】:
我正在尝试使用 REST API 更新现有队列的优先级,如下所示:
PUT /api/queues/%2F/TestEvent_ProcessingService HTTP/1.1
Host: localhost:15672
Authorization: Basic <--snip-->
cache-control: no-cache
{
"durable":true,
"arguments":{
"x-max-priority":2
},
}
回复是:
{
"error": "bad_request",
"reason": "inequivalent arg 'x-max-priority' for queue 'TestEvent_ProcessingService' in vhost '/': received the value '2' of type 'long' but current is none"
}
有没有办法在现有队列上设置此值,或者您是否需要删除队列并使用新的“x-max-priority”值重新创建它?
【问题讨论】:
标签: rabbitmq