From 9c8693ea555d6363c8e56798df640489fa6b4f44 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 14 Jul 2023 17:50:26 +0200 Subject: [PATCH] Quick hotfix for retries --- app/incoming_activities.py | 2 +- app/outgoing_activities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/incoming_activities.py b/app/incoming_activities.py index 583b208..94dd0d6 100644 --- a/app/incoming_activities.py +++ b/app/incoming_activities.py @@ -60,7 +60,7 @@ def _set_next_try( if not outgoing_activity.tries: raise ValueError("Should never happen") - if outgoing_activity.tries == _MAX_RETRIES: + if outgoing_activity.tries >= _MAX_RETRIES: outgoing_activity.is_errored = True outgoing_activity.next_try = None else: diff --git a/app/outgoing_activities.py b/app/outgoing_activities.py index 1d992a9..022334d 100644 --- a/app/outgoing_activities.py +++ b/app/outgoing_activities.py @@ -151,7 +151,7 @@ def _set_next_try( if not outgoing_activity.tries: raise ValueError("Should never happen") - if outgoing_activity.tries == _MAX_RETRIES: + if outgoing_activity.tries >= _MAX_RETRIES: outgoing_activity.is_errored = True outgoing_activity.next_try = None else: