Skip to content

Only retry requests on certain status codes #34

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

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Conversation

AdamWill
Copy link
Contributor

@AdamWill AdamWill commented Nov 4, 2022

It doesn't make sense to retry e.g. 404s, or other codes that would tend to indicate a user error or permanent problem rather than some transient issue. This is my best cut at a list of 'appropriate' codes to retry on, based on the obvious canonical source, http.cat.

Signed-off-by: Adam Williamson awilliam@redhat.com

It doesn't make sense to retry e.g. 404s, or other codes that
would tend to indicate a user error or permanent problem rather
than some transient issue. This is my best cut at a list of
'appropriate' codes to retry on, based on the obvious canonical
source, http.cat.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@AdamWill
Copy link
Contributor Author

AdamWill commented Nov 4, 2022

This sort of addresses #16 in an oblique way.

@AdamWill
Copy link
Contributor Author

AdamWill commented Nov 9, 2022

welp, I think this one makes sense, so I'm gonna merge it. :D

@AdamWill AdamWill merged commit dc939d2 into main Nov 9, 2022
@AdamWill AdamWill deleted the retry-codes branch November 9, 2022 18:15
@perlpunk
Copy link
Contributor

Thanks!

baierjan added a commit to openSUSE/qem-bot that referenced this pull request Mar 3, 2023
This reverts commit f41b070.

We should be able to use retry again as openQA-python-client will not
retry for 404 anymore.

References:
* https://progress.opensuse.org/issues/107923#note-35
* os-autoinst/openQA-python-client#34
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