-
Notifications
You must be signed in to change notification settings - Fork 7
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
Configure OQT using files or environment variables #255
Conversation
8ccb1c0
to
5b0cf8d
Compare
0d5720b
to
cdaf107
Compare
a401e0c
to
2edb21d
Compare
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.
Thanks for the PR. I have made some comments/questions, mostly about the details of the tests and the config design.
Two general remarks:
- Is there any config variable without a default and mandatory to be set by the user? If no, I would really prefer to not having the config file mandatory.
- The tests cannot depend on the local configuration. That doesn't make the tests independent, which they should be.
Thanks for the throughout review so far!
|
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.
Changelog missing!
Rewrite configuration by adding default configuration and the possibility to configure OQT using a file or/and environment variables. BREAKING: Rename env `OQT_SEMAPHORE` to `OQT_CONCURRENT_COMPUTATIONS and `OHSOME_API` to `OQT_OHSOME_API` Changes include: - new module `config.py` located at root of the package - move logging configuration to `config.py` - configuration file path defaults to `workers/config/config.yaml` - provide sample configuration at `workers/config/sample-config.yaml` - move `definitions.py` to the root of the package - update Dockerfile and docker-compose files - update .gitignore - update documentation - update CHANGELOG
Description
Configure OQT using files or environment variables.
All configuration can be done using environment variables.
All configuration can also be done by providing a configuration file (
yaml
format).The default configuration file path is
workers/config/config.yaml
. The path to the configuration can be changed by setting the path in the environment variableOQT_CONFIG
.A sample configuration file is provided at
workers/config/config.yaml
.Corresponding issue
Checklist
main
(e.g. throughgit rebase main
)Open question: