rabbitmq-delayed-message-exchange icon indicating copy to clipboard operation
rabbitmq-delayed-message-exchange copied to clipboard

X-delay header doesn't negate the value.

Open manish7-thakur opened this issue 9 years ago • 5 comments

As mentioned on the link https://www.rabbitmq.com/blog/2015/04/16/scheduling-messages-with-rabbitmq/

The plugin doesn't negate the value of delay provided in the header. The POC I did still shows the same positive value. delayed-consumer processed message Hello World 1 at {x-delay=10000}

manish7-thakur avatar Aug 16 '16 09:08 manish7-thakur

up

comensee avatar Jan 25 '17 11:01 comensee

We have the same issue

espenekvang avatar Apr 21 '17 08:04 espenekvang

I'm having the same issue. I'm using the JMS https://www.rabbitmq.com/jms-client.html and it shows the value of x-delay as positive, but when I fetch the messages on the RabbitMQ admin, it shows correctly.

AndreTheHunter avatar May 26 '21 06:05 AndreTheHunter

I found out that publishing through admin with header x-delay=10000 will return correct msg with x-delay=-10000, but publishing with node.js amqplib, same message will return x-delay with positive value, after correct amount of time.

const options = { 'headers': { 'x-delay': 10000, 'x-other-type': 'some other type'}};
channel.publish(exchange, key, Buffer.from(msg), options);

alex-3pi avatar Nov 02 '21 13:11 alex-3pi

how to use with the python lib of pika

bruse-peng avatar Dec 02 '21 02:12 bruse-peng