Skip to content

Redrive policy and message deletion  #3

Description

@xcf33

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions