integreat-io / integreat-transporter-bull

Bull queue transporter for Integreat
Other
1 stars 0 forks source link

Fix bug where closing one connection will close it for other queue setups towards same queue #16

Closed kjellmorten closed 3 months ago

kjellmorten commented 6 months ago

When we have more than two or more services for the same Bull queue, we get this bug when the first one is closing. The setup might be that one is pushing and one is listening.

The solution is probably to keep track of how many queues we have listening, and only actually close the Bull/Redis connection when the last one closes.