Closed malheirosrafa closed 6 years ago
Add one more transport specific exception to workaround messenger abstraction.
Can you give me some tips on how can I do it? Eg: if the database timedout, I can't throw that transport specific exception (In my application domain). Sorry if I don't understand what you had said, I'm a beginner developer.
Btw enqueue itself does not get in your way. If you do not catch exception it will be redelivered once visibility timeout. If you catch it you can decide what to do: ack, reject or requeue.
That's the problem, it I'm not catching the exception and it is not being redelivered on visibility timeout.
yeap it's because transport is trying to be smart https://github.com/php-enqueue/messenger-adapter/blob/master/QueueInteropTransport.php#L99
hey, i've got the same problem. Did u solve your problem @malheirosrafa ? because I could not really understand the explanation given since for me it was the same Post you've made @makasim, the best way to solve is to extend the SQS Transport and override the Receive method? if so, can you post some examples yourself?
On exceptions the QueueInteropTransport should not requeue the message instead of rejected it?
If this is the correct behaviour, how can I make the message at least not be rejected, to let te visibility timeout of AWS SQS set the message visible again?