Closed rishi-aga closed 1 year ago
This definitely needs some sort of investigation as to why, we've not been made aware of any such issues in the past.
We'd probably first want some sort of failing test to work out if this is actually an issue with the consumer (would be e2e), then work from there until the test passes. It's possible that this is due to something external.
Edit: After looking more into it, I think it might be that we made heartbeat interval id a global variable and your change would actually resolve this, as this was how it was originally implemented.
Thanks @nicholasgriffintn
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Describe the bug
heartbeatInterval
is not cleared for all the messages, this is causing error events after the message is successfully processed.possible fix: https://github.com/bbc/sqs-consumer/pull/375/files
Your minimal, reproducible example
See steps to reproduce.
Steps to reproduce
batchSize
> 1, setheartbeatInterval
andhandleMessage
for processing the message.heartbeatInterval
for one of the messages. For other messages, it emits:Expected behavior
It should not be emitting error events after the message is successfully processed.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Package version
^7.0.2
AWS SDK version
^3.258.0
Additional context
No response