mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-02-22 06:57:39 +01:00
Quick hotfix for retries
This commit is contained in:
parent
febd8c3d26
commit
9c8693ea55
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user