-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
refactor(client): refactor code, style of pyclient #1450
Conversation
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
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.
If PyClientRuntime is removed, how will we work with Jupyter Notebooks?
options=[('grpc.max_send_message_length', -1), | ||
('grpc.max_receive_message_length', -1)]) as channel: | ||
stub = jina_pb2_grpc.JinaRPCStub(channel) | ||
self.logger.success(f'connected to the gateway at {self.args.host}:{self.args.port_expose}!') |
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.
await channel.ready()
here before the success message
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.
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.
how do you think to maintain pyclient as a separate project outside jina, something like jina-py.
Codecov Report
@@ Coverage Diff @@
## master #1450 +/- ##
==========================================
+ Coverage 81.43% 82.79% +1.36%
==========================================
Files 112 108 -4
Lines 6616 6308 -308
==========================================
- Hits 5388 5223 -165
+ Misses 1228 1085 -143
Continue to review full report at Codecov.
|
@deepankarm This refactoring broke jinad, which needs to be fixed. |
PyClient
,GatewayPea
.