From 186d22a2a0c43d7b7a352232617d18a37f4bb3cb Mon Sep 17 00:00:00 2001 From: pikann Date: Tue, 14 May 2024 11:11:02 +0700 Subject: [PATCH] chore: allow retries --- pyproject.toml | 2 +- sqs_client/client.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5579ffe..d2a99a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sqs-client" -version = "0.1.5" +version = "0.1.6" authors = [ {name="Digital Fortress", email="hai.huynh@digitalfortress.dev" }, ] diff --git a/sqs_client/client.py b/sqs_client/client.py index 4aae9d5..69924d4 100644 --- a/sqs_client/client.py +++ b/sqs_client/client.py @@ -177,11 +177,10 @@ def subscribe( for message in messages["Messages"]: try: callback(message) + self.delete_message(queue_name, message) except Exception as e: exception(e) - self.delete_message(queue_name, message) - def publish( self, queue_name,