PruvoNet / squiss-ts

High-volume Amazon SQS Poller for Node.js
Apache License 2.0
48 stars 15 forks source link

Stopping a queue should delete all pending messages immediately #146

Closed regevbr closed 1 year ago

regevbr commented 1 year ago

Expected Behavior

When stopped, we should delete immediately all pending messages to be deleted

Current Behavior

The pending for deletion messages will be deleted when the deletion timeout occurs (and it does not delay the shutdown)

Possible Solution

Delete all pending messages after there are no more messages in flight.

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment