[Deploy] Finalize Gateway/Proxy port during device binding.#2167
Merged
Raphael-Jin merged 6 commits intodev/v0.7.0from Jun 13, 2024
Merged
[Deploy] Finalize Gateway/Proxy port during device binding.#2167Raphael-Jin merged 6 commits intodev/v0.7.0from
Raphael-Jin merged 6 commits intodev/v0.7.0from
Conversation
alaydshah
reviewed
Jun 12, 2024
| inference_port = model_config_parameters.get("server_internal_port", | ||
| ServerConstants.MODEL_INFERENCE_DEFAULT_PORT) | ||
| inference_port_external = model_config_parameters.get("server_external_port", inference_port) | ||
| inference_port_external = os.environ.get(ServerConstants.ENV_MASTER_INFERENCE_PORT_KEY, |
Contributor
There was a problem hiding this comment.
How about centralizing the reads by adding static methods, one in Server Constant for master port and another in Client Constants for worker port?
alaydshah
approved these changes
Jun 13, 2024
Contributor
|
Looks good to me 👍🏻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.