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

rabbitmq: canceled consumers are resumed if connection/channel reconnects #725

Open
ttshivers opened this issue Apr 16, 2024 · 2 comments
Open

Comments

@ttshivers
Copy link
Contributor

An explicitly canceled consumer through cancelConsumer is reapplied on connection reconnection since the setup method is ran again which registers the subscribers again.

@ttshivers
Copy link
Contributor Author

ttshivers commented Apr 16, 2024

I think we might want to register and cancel the consumers with amqp-connection-manager's ChannelWrapper methods consume and cancel https://github.com/jwalton/node-amqp-connection-manager/blob/599d31f01d2e13d6a049bd7645e39e5de99d0293/src/ChannelWrapper.ts#L721 once outside of the setup which is run on every reconnect.

Copy link

github-actions bot commented Oct 1, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants