Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow infinite retry #396

Merged
merged 2 commits into from
Apr 1, 2024
Merged

Allow infinite retry #396

merged 2 commits into from
Apr 1, 2024

Conversation

vvmruder
Copy link
Contributor

In some contexts (cluster) it is useful to allow infinite retries float('inf'). Especially in clusters redis might be not available for some time but we don't want the worker to crash on that. Instead it just should wait until redis comes available again.

float('inf') always compare greater than any float or int. So it should be safe to use. But str(float('inf')) translates to 'inf' and that's why this change is necessary.

vvmruder added 2 commits May 10, 2023 11:15
Allows values like `float('inf')` to retry infinite. This can be useful in cluster contexts where a redis service might temporarily not available for some reason but you might not want the worker to crash on that but waiting until redis is available again
@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

Merging #396 (ddc8e77) into main (e0cd916) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #396   +/-   ##
=======================================
  Coverage   98.66%   98.66%           
=======================================
  Files          11       11           
  Lines        1052     1052           
  Branches      199      199           
=======================================
  Hits         1038     1038           
  Misses          6        6           
  Partials        8        8           
Impacted Files Coverage Δ
arq/connections.py 95.20% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0cd916...ddc8e77. Read the comment docs.

rossmacarthur pushed a commit to hunchdata/arq that referenced this pull request Sep 19, 2023
@samuelcolvin samuelcolvin merged commit 3de6d87 into python-arq:main Apr 1, 2024
@samuelcolvin
Copy link
Member

thanks so much.

@samuelcolvin
Copy link
Member

v0.26.0b1 is released, please try it, I'll release v0.26 at the end of the week, see #441.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants