Skip to content

Commit 71ae0f9

Browse files
committed
Allow config override for backup constants
1 parent 991f309 commit 71ae0f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rqd/rqd/rqconstants.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164

165165
# Backup running frames cache. Backup cache is turned off if this path is set to
166166
# None or ""
167-
BACKUP_CACHE_PATH = "/tmp/opencue/running_frames_backup.dat"
167+
BACKUP_CACHE_PATH = ""
168168
BACKUP_CACHE_TIME_TO_LIVE_SECONDS = 60
169169

170170
try:
@@ -248,6 +248,11 @@
248248
if config.has_section(__host_env_var_section):
249249
RQD_HOST_ENV_VARS = config.options(__host_env_var_section)
250250

251+
if config.has_option(__override_section, "BACKUP_CACHE_PATH"):
252+
BACKUP_CACHE_PATH = config.get(__override_section, "BACKUP_CACHE_PATH")
253+
if config.has_option(__override_section, "BACKUP_CACHE_TIME_TO_LIVE_SECONDS"):
254+
BACKUP_CACHE_TIME_TO_LIVE_SECONDS = config.get(__override_section, "BACKUP_CACHE_TIME_TO_LIVE_SECONDS")
255+
251256
__docker_mounts = "docker.mounts"
252257
__docker_config = "docker.config"
253258
__docker_images = "docker.images"

0 commit comments

Comments
 (0)