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

Cannot disable RabbitMQ heartbeat #647

Closed
jarpoole opened this issue Sep 15, 2023 · 1 comment
Closed

Cannot disable RabbitMQ heartbeat #647

jarpoole opened this issue Sep 15, 2023 · 1 comment

Comments

@jarpoole
Copy link

Currently @golevelup/nestjs uses amqp-connection-manager v3.x which has a bug preventing connectionManagerOptions.heartbeatIntervalInSeconds from being set to zero. This issue was fixed in 2022 upstream in jwalton/node-amqp-connection-manager#236. This is a major issue because it prevents RabbitMQ from being used with long running jobs because the client will be disconnected.

There are several candidate PRs for upgrading the dependencies like #601 and the older #459. After reading through the comments it doesn't seem like there are any major issues but if there are I am happy to help out.

As a work around for anyone else having issues with this, see #610 where it is mentioned that you can add ?heartbeat=0 to the end of the AMQP URI to fix the issue. This makes use of the tuning parameters which are documented in https://amqp-node.github.io/amqplib/channel_api.html#tuning-parameters

@underfisk
Copy link
Contributor

#677 was merged and soon i a new version v4 will be available and hopefully fixes this issue
I'm closing as there's no action item here except bumping to v4 which is already performed, just waiting for a new release from WonderPanda

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

2 participants