-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ENG-1524: Change retry mechansim default in LightningClient #15412
Conversation
The test |
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.
Thank you!
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.
LGTM !
@awaelchli mind have a look at failing tests? Could be due to secrets? |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
* Change retry mechansim default in LightningClient * add changelog * fix weird patching mechanism * remove unused import * hack the system * try again, maybe something has changed in the package Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit 7decc50)
* Change retry mechansim default in LightningClient * add changelog * fix weird patching mechanism * remove unused import * hack the system * try again, maybe something has changed in the package Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka <[email protected]> Co-authored-by: Jirka Borovec <[email protected]> (cherry picked from commit 7decc50)
What does this PR do?
Fixes ENG-1524
Previously, calls to the LightningClient would follow an exponential backoff retry mechanism when calling APIs. This is desired for calls in the cloud, but not for calls in the CLI. This PR changes this default. The cloud backend will still use the retry mechanism, but the LightningClient instances used in the CLI will immediately error out when an API call can't reach the endpoint.
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
I made sure I had fun coding 🙃
cc @Borda