Quick hotfix for retries

main
Thomas Sileo 2023-07-14 17:50:26 +02:00
parent febd8c3d26
commit 9c8693ea55
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ def _set_next_try(
if not outgoing_activity.tries: if not outgoing_activity.tries:
raise ValueError("Should never happen") raise ValueError("Should never happen")
if outgoing_activity.tries == _MAX_RETRIES: if outgoing_activity.tries >= _MAX_RETRIES:
outgoing_activity.is_errored = True outgoing_activity.is_errored = True
outgoing_activity.next_try = None outgoing_activity.next_try = None
else: else:

View File

@ -151,7 +151,7 @@ def _set_next_try(
if not outgoing_activity.tries: if not outgoing_activity.tries:
raise ValueError("Should never happen") raise ValueError("Should never happen")
if outgoing_activity.tries == _MAX_RETRIES: if outgoing_activity.tries >= _MAX_RETRIES:
outgoing_activity.is_errored = True outgoing_activity.is_errored = True
outgoing_activity.next_try = None outgoing_activity.next_try = None
else: else: