-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recursion while waiting for redis connection
`Arq` has ability to retry connections to redis in case of problems. That is a nice feature, but it crashes after hundreds of attempts reaching maximal recursion depth. This change modifies re-try algorithm from recursion to iteration avoiding the limit. In practice it would be nice to have ability to wait forever as issue with redis instance should not kill worker process, but that is a separate change that can be built on top. Fixes exception when retrying redis connection many times: RecursionError: maximum recursion depth exceeded while getting the str of an object
- Loading branch information
Showing
2 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters