-
Notifications
You must be signed in to change notification settings - Fork 180
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
introduce retry for fetching data source configurations #502
Conversation
✅ Deploy Preview for opal-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @thilak009 :)
overall it looks good but it affects every data fetch from the DataFetcher not just the base configuration. I'd like to make sure @roekatz is at least aware and ok with this change.
I've put a task on him to review.
(@roekatz for your reference: https://linear.app/permit/issue/PER-8094/review-opal-pr-502)
Hi @thilak009, Hmm... the |
Hm, i see that a I see that the underlying class which makes the HTTP requests in fetcher is |
The |
i don't think so, for a bad status code let's say for a 5XX response, the |
The Therefore, as you said, no exception raised during the fetch can or should be caught there (in |
Closing for now |
Got some time this weekend to take a stab at this again. So i tried setting retry configuration to the
based on what u mentioned, doing this should have triggered a retry when the actual fetch call fails with a status code of 5XX, but retry is not happening. |
@thilak009 So yes - it should be edited to raise an exception, I would recommend simply passing Thanks for finding the time to come back to this! 🙌 |
…re/data-source-retry
… for >400 status code for retry
@roekatz i have made the changes as you suggested by setting the You can squash commits i guess, the changes are minimal but there are more commits due to the initial implementation 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thilak009 - That's great, thank you!
The point regarding the reraise
isn't clear to me, other than that the code looks good.
Waiting for your answer than I can approve & merge :)
…espective headings
Changes proposed
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers