~tsileo/microblog.pub

9c8693ea555d6363c8e56798df640489fa6b4f44 — Thomas Sileo 1 year, 3 months ago febd8c3 v2
Quick hotfix for retries
2 files changed, 2 insertions(+), 2 deletions(-)

M app/incoming_activities.py
M app/outgoing_activities.py
M app/incoming_activities.py => app/incoming_activities.py +1 -1
@@ 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:

M app/outgoing_activities.py => app/outgoing_activities.py +1 -1
@@ 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: