-
Notifications
You must be signed in to change notification settings - Fork 203
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
Rqd config file from env var and copy rqd host env var #1270
Rqd config file from env var and copy rqd host env var #1270
Conversation
…m the submitter to the RQD worker
…ate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file
…ate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file
…n the frame env.
Signed-off-by: Kern Attila GERMAIN <[email protected]>
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.
I think @bcipriano had mentioned something similar was in his Radar, but I couldn't find a PR for it, so IMO it's okay to merge as soon as the single comment I had gets addressed and some unit tests get added.
As for testing, something similar to this would be enough:
https://github.com/AcademySoftwareFoundation/OpenCue/blob/master/rqd/tests/rqconstants_tests.py
…/OpenCue into rqd-config-file-from-env-var # Conflicts: # rqd/rqd/rqconstants.py
Signed-off-by: Kern Attila GERMAIN <[email protected]>
8fd3d28
into
AcademySoftwareFoundation:master
…reFoundation#1270) * feat: load rqd config file from env var `RQD_CONFIG_FILE` * feat: new variable `RQD_HOST_ENV_VARS` used to copy env variables from the submitter to the RQD worker * feat: renamed variable `__section` to `__override_section` to accomodate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file * feat: renamed variable `__section` to `__override_section` to accomodate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file * feat: use the list of env var from `RQD_HOST_ENV_VARS` to copy them in the frame env. * docs: fix misleading comment * doc: add example rqd.conf file * doc: header for example config file * fix: add newline Signed-off-by: Kern Attila GERMAIN <[email protected]> * doc: added a description for the new UseHostEnvVar section in the example file. * doc: Added some notes about usage and rez alternative * chores: pylint line too long --------- Signed-off-by: Kern Attila GERMAIN <[email protected]>
…reFoundation#1270) * feat: load rqd config file from env var `RQD_CONFIG_FILE` * feat: new variable `RQD_HOST_ENV_VARS` used to copy env variables from the submitter to the RQD worker * feat: renamed variable `__section` to `__override_section` to accomodate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file * feat: renamed variable `__section` to `__override_section` to accomodate multiple sections feat: added `__host_env_var_section` feat: Allow config file to contain keys without value feat: Respect case from the config file keys fix: Added optionnal `OVERRIDE_IS_DESKTOP` from the config file (detection does not work on Windows so we have to force it somehow) feat: Added `CHECK_INTERVAL_LOCKED` and `MINIMUM_IDLE` for nimby configuration feat: added `RQD_HOST_ENV_VARS` for config file * feat: use the list of env var from `RQD_HOST_ENV_VARS` to copy them in the frame env. * docs: fix misleading comment * doc: add example rqd.conf file * doc: header for example config file * fix: add newline Signed-off-by: Kern Attila GERMAIN <[email protected]> * doc: added a description for the new UseHostEnvVar section in the example file. * doc: Added some notes about usage and rez alternative * chores: pylint line too long --------- Signed-off-by: Kern Attila GERMAIN <[email protected]>
Link the Issue(s) this Pull Request is related to.
#574
Summarize your change.
RQD process being isolated from the system running it, we should be able to declare environment variables to be used in the frame command.
RQD_CONFIG_FILE
UseHostEnvVar
CHECK_INTERVAL_LOCKED
andMINIMUM_IDLE
as configurableOVERRIDE_IS_DESKTOP
readable from the config file (desktop mode not detected on Window yet)Questions