graze / queue

:postbox: Flexible abstraction for working with queues in PHP.
MIT License
49 stars 10 forks source link

adds a reject method to do the opposite of acknowledge #43

Closed h-bragg closed 6 years ago

h-bragg commented 6 years ago

Currently we can Acknowledge messages, but we have no way of saying, reject this immediately.

The result is that (for SQS) we need to wait for the VisibilityTimeout for a message to expire.

This PR's adds a ->reject method to the adapter which (for SQS) ensures that the message fails and gets put back on the queue.

h-bragg commented 6 years ago

@biggianteye not necessarily required for [internal proj here], but would be sooo much better