-
Notifications
You must be signed in to change notification settings - Fork 6
stable service startup and port selection #446
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
base: devel
Are you sure you want to change the base?
Conversation
src/radical/utils/zmq/server.py
Outdated
|
|
||
| addr = Url(as_string(self._sock.getsockopt(zmq.LAST_ENDPOINT))) | ||
| addr.host = get_hostip() | ||
| addr = zmq_bind(self._sock) |
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.
this disregards provided url (proto, iface, and ports)
p.s., would be good to combine/merge misc.find_port with zmq.server.Server._iterate_ports and then extend zmq.utils.zmq_bind to handle provided url as it is done for Server
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.
TODO: check
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #446 +/- ##
==========================================
- Coverage 61.23% 61.12% -0.11%
==========================================
Files 66 66
Lines 7359 7324 -35
==========================================
- Hits 4506 4477 -29
+ Misses 2853 2847 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| # | ||
| def find_port(port_min=10000, port_max=65535): | ||
| def find_port(port_min: int = None, | ||
| port_max: int = None) -> Union[int, None]: |
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.
Add iface?
|
@andre-merzky there are couple comments here, if this PR is crucial/important do we want that comments to be addressed before merging? |
This simplifies
xGFabricdeplyment, and service deployment in general