-
Notifications
You must be signed in to change notification settings - Fork 12
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
Set projects_folder
via env var
#188
Comments
If I understand correctly your request, this should already be possible, since the settings are a pydantic BaseSettings: https://docs.pydantic.dev/latest/concepts/pydantic_settings/#environment-variable-names For example I regularly set my default project with Does this solve your issue? |
thanks for the quick reply! this was what i was looking for export JFREMOTE_PROJECTS_FOLDER=/dir/to/jf_remote/configs would be great to document the env var prefix |
Actually it is already documented: https://matgenix.github.io/jobflow-remote/user/projectconf.html#general-settings |
i remember now seeing the docs you linked before. just forgot about them. my bad! i think that's already the best place to document them. if you search for "environment variable" on that page, it only comes up once at the top. the term isn't used again at the bottom where the variable names are actually used. i think adding a subsection titled "Environment Variables" listed under "On this page" would help discoverability. and CONSTANT_CASING the variable names could also help since that's what i'm looking for when skimming the page |
Small QoL suggestion: would be nice if the
projects_folder
which currently can only be configured in~/.jfremote.yaml
could also be set via env varJF_REMOTE_PROJECTS_FOLDER
. one motivation for this is that some HPC setups don't provide access to the home folder from compute nodesjobflow-remote/src/jobflow_remote/config/settings.py
Lines 19 to 21 in 8df1979
The text was updated successfully, but these errors were encountered: