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

X-delay header doesn't negate the value. #64

Open
manish7-thakur opened this issue Aug 16, 2016 · 5 comments
Open

X-delay header doesn't negate the value. #64

manish7-thakur opened this issue Aug 16, 2016 · 5 comments

Comments

@manish7-thakur
Copy link

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}

@comensee
Copy link

up

@espenekvang
Copy link

We have the same issue

@AndreTheHunter
Copy link

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.

@alex-3pi
Copy link

alex-3pi commented Nov 2, 2021

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);

@bruse-peng
Copy link

how to use with the python lib of pika

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

6 participants