-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Cosmos] Connection Retry Policy samples #23945
Conversation
removing connection retry policy from public view
rewriting some code for the cosmos client both sync and async
retry config samples for both sync and async
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.
Overall great job Jeric! Just left a couple comments on some small things missed, but great first PR regardless.
added more retry options and added more sample comments.
cosmos client reworks for both sync and async
initializing async client with context manager
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.
Just one little thing and Anna's comments, but you should be good after that!
reverting changes
updating comments in the samples
adding deprecation for retry option
deprecation added for connection retry policy
indentation fix
changelog additions
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, thanks Jeric!
Co-authored-by: Simon Moreno <30335873+simorenoh@users.noreply.github.com>
whitespace error fix
…-for-python into jh-retry_configs
Description
Created samples for retry config on both sync and async clients. The sample shows user how to pass in Connection Retry Policy options.
Deprecated the options 'connection_retry_policy' and 'retry_options' in the sync client.
There are some small code reworks in the cosmos_client.py file in both sync and async clients.
All SDK Contribution checklist:
General Guidelines and Best Practices