forked from AcademySoftwareFoundation/OpenCue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rqd config file from env var and copy rqd host env var (AcademySoftwa…
…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]>
- Loading branch information
1 parent
58c9d8d
commit 87ee8e6
Showing
3 changed files
with
96 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# An Example rqd config file. | ||
# It can be placed anywhere on your filesystem and referenced with | ||
# the RQD_CONFIG_FILE environment variable or the -c flag when launching rqd. | ||
# If this file is not found the defaults in rqconstants.py will be used. | ||
|
||
[Override] | ||
RQD_USE_PATH_ENV_VAR=1 | ||
RQD_USE_IP_AS_HOSTNAME=0 | ||
OVERRIDE_IS_DESKTOP=True | ||
OVERRIDE_NIMBY=True | ||
# Number of seconds to wait before checking if the user has become idle. | ||
CHECK_INTERVAL_LOCKED = 60 | ||
# Seconds of idle time required before nimby unlocks. | ||
MINIMUM_IDLE = 900 | ||
|
||
# This section tells RQD which env var it should copy from the worker machine to the job's environment. | ||
# For instance you could need to copy PIXAR_LICENSE_FILE if you launch a renderman job. | ||
# Note: - environment variables will be copied from the machine executing the job, not the sender ! | ||
# - this is useful mostly if you execute RQD in a virtual env. | ||
# - you should ignore this section if rez is used to manage your env. | ||
[UseHostEnvVar] | ||
# SYSTEMDRIVE is mandatory to allow maya to run in batch via RQD's virtualenv | ||
SYSTEMDRIVE | ||
# Studio specific | ||
MAYA_MODULE_PATH | ||
MAYA_SCRIPT_PATH | ||
PIXAR_LICENSE_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters