-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Retry decorator and livetest update #6555
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
Conversation
yunhaoling
commented
Jul 30, 2019
- Refactor the retry logic with decorator to improve reusability
- Add livetest for create_event_batch
* Update livetest * Remove legacy code and update livetest
|
Can one of the admins verify this patch? |
* Add missing close in livetest * Update livetest to wait longer * Close handler each time before retry
sdk/eventhub/azure-eventhubs/azure/eventhub/aio/producer_async.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/_consumer_producer_mixin.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/_consumer_producer_mixin.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/_consumer_producer_mixin.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/aio/client_async.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/aio/consumer_async.py
Outdated
Show resolved
Hide resolved
sdk/eventhub/azure-eventhubs/azure/eventhub/aio/producer_async.py
Outdated
Show resolved
Hide resolved
* Wait longer for reconnect op * Raise authentication error when open timeout * Optimize retry decorator * Update code according to review * Small fix
sdk/eventhub/azure-eventhubs/azure/eventhub/aio/consumer_async.py
Outdated
Show resolved
Hide resolved
* Update decorator implementation
sdk/eventhub/azure-eventhubs/azure/eventhub/_consumer_producer_mixin.py
Outdated
Show resolved
Hide resolved
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.
The changes can go in. Let's do a broader review of the full code to see what/if there are any places where we can refactor code after b2 - assuming that the CI is green.
* Draft for changelog * Improve syntax for kwargs
|
close this PR as all the changes have been merged to eventhubs_preview2 in another PR. |