-
Notifications
You must be signed in to change notification settings - Fork 864
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
Fixed workflow store pathing issue #2792 #2797
Conversation
could you add a test in the PR and also update Readme |
Could you add one test that workflow_store is set neither cmd nor config.properties? |
@@ -107,6 +107,14 @@ There are no default required arguments to start the server | |||
1. **start**: optional, A more descriptive way to start the server. | |||
1. **stop**: optional, Stop the server if it is already running. | |||
|
|||
#### Argument Priority: | |||
Arguments can be set in multiple locations (ex: command line, config.properties). The following is the priority: |
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.
Arguments can be set in multiple locations (ex: command line, config.properties). The following is the priority: | |
Arguments can be set in multiple locations (ex: command line, config.properties). The following is the priority from highest to lowest: |
Also, should we include where environment variable configurations stand in this list?
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.
Environment variables take highest precedence but enable_envvars_config has to be set true in config.properties, so it isnt enabled by default. I can add it to the doc if needed.
#2792
Issue is that workflow store pathing in config.properties is being overwritten by the default workflow store location.
Fixed this so that default path is only set if config.properties and cmd line are both empty.
Feature/Issue validation/testing:
Test Case 1:
getWorkflowStore()
returns the same path as provided inconfig_test_env.properties
Test Case 2:
getWorkflowStore()
returns the default path (model_store path) sinceconfig_test_workflow.properties
has no workflow_pathTest Case 3: added workflow_store path to config.properties and expect it to be used.
config.properties:
Ran:
torchserve --start --ncs --ts-config /home/ubuntu/serve/config.properties
Result:
config.properties:
Ran:
torchserve --start --ncs --model-store /home/ubuntu/serve/model_store
Result: