Skip to content

Commit

Permalink
Set max retries relay retry, not max try
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 20, 2023
1 parent 428c3c1 commit be2e5f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tilecloud/store/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _claim_olds(self) -> Tuple[Iterable[Tuple[bytes, Any]], bool]:
if int(pending["time_since_delivered"]) >= self._pending_timeout_ms:
id_ = pending["message_id"]
nb_retries = int(pending["times_delivered"])
if nb_retries < self._max_retries:
if nb_retries <= self._max_retries:
logger.info(
"A message has been pending for too long. Stealing it (retry #%d): %s",
nb_retries,
Expand Down

0 comments on commit be2e5f2

Please sign in to comment.