【问题标题】:Altering the max priority on an existing RabbitMQ queue using the management REST API使用管理 REST API 更改现有 RabbitMQ 队列的最大优先级
【发布时间】: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


    【解决方案1】:

    您是否需要删除队列并使用新队列重新创建它 “x-max-priority”值?

    是的,请参阅我对您交叉发布的问题 here 的回答。


    注意:RabbitMQ 团队会监控 the rabbitmq-users mailing list,并且有时只会回答 StackOverflow 上的问题。

    【讨论】:

      猜你喜欢
      • 2012-06-15
      • 2015-01-06
      • 1970-01-01
      • 2012-02-24
      • 1970-01-01
      • 1970-01-01
      • 2016-09-17
      • 2012-03-03
      • 1970-01-01
      相关资源
      最近更新 更多