Skip to content

Commit

Permalink
Reducing retries for failed REMOVE events from 2 to 1
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco De Martino <fdm@amazon.com>
  • Loading branch information
demartinofra committed Mar 31, 2020
1 parent ade075a commit 745961c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sqswatcher/sqswatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _requeue_message(queue, message):
:param queue: the queue where to send the message
:param message: the message to requeue
"""
max_retries = 2
max_retries = 1
message_body = json.loads(message.body)
if "TTL" not in message_body:
message_body["TTL"] = max_retries
Expand Down

0 comments on commit 745961c

Please sign in to comment.