-
Notifications
You must be signed in to change notification settings - Fork 124
vine factory:always use manager.name as fallback when no host:port is available #4001
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
vine factory:always use manager.name as fallback when no host:port is available #4001
Conversation
7a07cfd to
8a10a29
Compare
|
Make sure this works even when both manager name and object are specified. like:
Where it "working" means that |
|
localhost:port should only be set when using batch_type local. Is this not the case? |
|
Yeah the problem I brought up in the issue was that when the manager object is passed to the factory it always invokes the worker with |
|
So this pr does not solve it? In the examples you posted in the issue the batch type is not being set, so it defaults to "local", and that's why the localhost:port is used. This pr is trying to make it so that you only get localhost:port if you specified a manager and the batch_type is local. |
|
It might be that I was creating the factory giving only the manager object as an argument, then modifying the factory object afterwards like |
|
Could we stop using localhost and always use a proper hostname so that local and remote workers can resolve if batch_type gets changed on the fly? |
|
I'm more inclined to forbid changing the batch type and manager host port after init. This would reflect what the |
|
Sounds good to me. |
|
does this one work for you? |
|
yes! |
… available (#4001) * vine factory:always use manager.name as fallback when no host:port is available * lint * do not allow changing batch-type, manager-name after initial configuration
… available (cooperative-computing-lab#4001) * vine factory:always use manager.name as fallback when no host:port is available * lint * do not allow changing batch-type, manager-name after initial configuration
Fix #3999
Proposed Changes
Give an overall description of the changes, along with the context and motivation.
Mention relevant issues and pull requests as needed.
Merge Checklist
The following items must be completed before PRs can be merged.
Check these off to verify you have completed all steps.
make testRun local tests prior to pushing.make formatFormat source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)make lintRun lint on source code prior to pushing.