Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ def _set_up_env_for_compression_scheduler(self) -> EnvVarsDict:
component_name = COMPRESSION_SCHEDULER_COMPONENT_NAME
logger.info(f"Setting up environment for {component_name}...")

logs_dir = self._clp_config.logs_directory / component_name
logs_dir.mkdir(parents=True, exist_ok=True)

env_vars = EnvVarsDict()

# Logging config
Expand All @@ -308,6 +311,9 @@ def _set_up_env_for_query_scheduler(self) -> EnvVarsDict:
component_name = QUERY_SCHEDULER_COMPONENT_NAME
logger.info(f"Setting up environment for {component_name}...")

logs_dir = self._clp_config.logs_directory / component_name
logs_dir.mkdir(parents=True, exist_ok=True)

env_vars = EnvVarsDict()

# Logging config
Expand Down
2 changes: 1 addition & 1 deletion tools/deployment/package/docker-compose.base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ services:
CLP_DB_PASS: "${CLP_DB_PASS:?Please set a value.}"
CLP_DB_USER: "${CLP_DB_USER:?Please set a value.}"
CLP_LOGGING_LEVEL: "${CLP_COMPRESSION_SCHEDULER_LOGGING_LEVEL:-INFO}"
CLP_LOGS_DIR: "/var/log"
CLP_LOGS_DIR: "/var/log/compression_scheduler"
PYTHONPATH: "/opt/clp/lib/python3/site-packages"
RESULT_BACKEND: "redis://default:${CLP_REDIS_PASS:?Please set a value.}@redis:6379\
/${CLP_REDIS_BACKEND_DB_COMPRESSION:-1}"
Expand Down
2 changes: 1 addition & 1 deletion tools/deployment/package/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ services:
CLP_DB_PASS: "${CLP_DB_PASS:?Please set a value.}"
CLP_DB_USER: "${CLP_DB_USER:?Please set a value.}"
CLP_LOGGING_LEVEL: "${CLP_QUERY_SCHEDULER_LOGGING_LEVEL:-INFO}"
CLP_LOGS_DIR: "/var/log"
CLP_LOGS_DIR: "/var/log/query_scheduler"
PYTHONPATH: "/opt/clp/lib/python3/site-packages"
RESULT_BACKEND: "redis://default:${CLP_REDIS_PASS:?Please set a value.}@redis:6379\
/${CLP_REDIS_BACKEND_DB_QUERY:-0}"
Expand Down
Loading