-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Avoid port collisions when defining port ranges #6054
Conversation
@@ -364,7 +368,8 @@ def main( | |||
|
|||
try: | |||
if listen_address: | |||
(host, worker_port) = get_address_host_port(listen_address, strict=True) | |||
host, _ = get_address_host_port(listen_address, strict=True) | |||
worker_port = str(_) |
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.
mypy hack
t = Nanny | ||
else: | ||
if nanny_port: | ||
kwargs["service_ports"] = {"nanny": nanny_port} |
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 looks like legacy cruft. service_ports is a property and can't be passed to Worker.__init__
.
start_arg = self.listener.prefix + unparse_host_port( | ||
host, self._given_worker_port | ||
) | ||
|
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.
worker_start_args does not seem to be used anywhere
This is long enough and far enough in a corner of features that I'm probably not going to review it a ton. That being said, and for the same reason, I don't mind if you want to self merge. |
I see the test is still failing - I was wrong in my diagnosis. I believe this PR is a very healthy thing to have and should be merged even if it doesn't solve the problem. |
Does NOT close #6045