You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have a handler for processing_error event like so
consumer.on('processing_error', (err, message) => {
console.error(`proc_error:`, err.message);
// Do some thing here
return message;
});
I want to be able to delete this message from the queue and not have it in-flight in SQS. The consumer keeps getting this message back all the time and keeps failing. One way to remove it is to use the DeleteMessageCommand from the SQS client itself. I want to know if the sqs-consumer package can handle this itself?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
If I have a handler for
processing_error
event like soI want to be able to delete this message from the queue and not have it in-flight in SQS. The consumer keeps getting this message back all the time and keeps failing. One way to remove it is to use the
DeleteMessageCommand
from the SQS client itself. I want to know if the sqs-consumer package can handle this itself?Example
No response
Beta Was this translation helpful? Give feedback.
All reactions