-
Notifications
You must be signed in to change notification settings - Fork 3
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
Runtime Config #399
Runtime Config #399
Conversation
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.
Maybe we should also document somewhere (in the README) that the runtime config exists? I just noticed that this is not mentioned there.
Yes, I will do so! What is with the StartUp Config. Would you have any objections if I merge all the information from that into the RuntimeConfig? (as both are only used in the case of --api) |
… option for specifying the port
Then we have one config for --api and one config for --preprocessing. I would also change the way the preprocessing config currently works, to be consistent with this. Therefore, we consistently have
Cornelius and Christian both mentioned that environment variables should be added to those lists. Do you object to have that between config and CLI for the final precendences:
|
Commit 7052329 works for me, and the code looked good to me. Documentation will be good. I don't think it needs any tests at this time in the project's history since the CI and my test runner will exercise the important options already. (Feel free to argument differently, I may be missing some context.) |
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.
LGTM, and works for SILO_PORT.
feat: tidying up CLI and file configuration for runtime config. Added option for specifying the port
Summary
The port on which SILO listens to requests should be able to be specified.
Furthermore, I edited the way the configs are parsed such that there is a default
RuntimeConfig
(default constructor), which has 2 member functions for overwriting its values from 1. the config file and 2. the CLI argumentsPR Checklist