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

Add an additional layer of retries to get a moira client beyond the default 3 for urllib #1083

Closed
wants to merge 3 commits into from

Conversation

mbertrand
Copy link
Member

What are the relevant tickets?

Potentially addresses https://github.com/mitodl/hq/issues/3810#issuecomment-2007305350

Description (What does it do?)

The current request to get a moira client will retry up to 3x (the urllib library default) before giving up. This PR adds an additional layer of retries, defaulting to 3 (3x3 = 9) which can be adjusted via a new setting (MOIRA_RETRIES).

How can this be tested?

Unit tests should pass. You would need current .env settings for MIT_WS_CERTIFICATE_FILE and MIT_WS_PRIVATE_KEY_FILE to be able to connect to moira successfully but without that you should see repeated attempts to connect in the log.

@collinpreston collinpreston self-assigned this Mar 20, 2024
@mbertrand
Copy link
Member Author

Closing, moira issue has been fixed

@mbertrand mbertrand closed this Mar 27, 2024
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