Hi
https://perandrestromhaug.com/posts/writing-an-sqs-consumer-in-python/
Excellent article, I'm just wondering if your code example has a mistake referenced below. It looks like you are deleting the message regardless if an exception has happened. Shouldn't you place the message.delete() in the TRY block so failed messages will eventually get to the DLQ? Or am I not understanding this?
Thanks!
Chang
Hi
https://perandrestromhaug.com/posts/writing-an-sqs-consumer-in-python/
Excellent article, I'm just wondering if your code example has a mistake referenced below. It looks like you are deleting the message regardless if an exception has happened. Shouldn't you place the
message.delete()in the TRY block so failed messages will eventually get to the DLQ? Or am I not understanding this?Thanks!
Chang
code_samples/sqs_consumer/sqs_consumer.py
Line 24 in 50c52fd