-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Make AsyncioExecutor a shared resource across EngineClients #5976
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
|
|
||
| self._service_args = service_args | ||
|
|
||
| @cached_property |
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.
I'd suggest removing this cached_property decorator since there's no need to cache on each EngineClient instance as well as on the AsyncExecutor class.
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.
Done
Co-authored-by: Matthew Neeley <[email protected]>
|
|
||
| self._service_args = service_args | ||
|
|
||
| @cached_property |
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.
Oops, need to add back @property since other places in the code call this like a property instead of a method.
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.
Makes sense. Fixed and tested; thanks!
This resolves issues in grpc/grpc#25364.