@@ -191,6 +191,9 @@ def _set_up_env_for_database(self) -> EnvVarsDict:
191191 env_vars |= {
192192 "CLP_DB_NAME" : self ._clp_config .database .names [ClpDbNameType .CLP ],
193193 }
194+ if self ._clp_config .compression_scheduler .type == OrchestrationType .SPIDER :
195+ env_vars ["SPIDER_DB_NAME" ] = self ._clp_config .database .names [ClpDbNameType .SPIDER ]
196+
194197 if BundledService .DATABASE not in self ._clp_config .bundled :
195198 env_vars |= {
196199 "CLP_DB_PORT" : str (self ._clp_config .database .port ),
@@ -199,9 +202,8 @@ def _set_up_env_for_database(self) -> EnvVarsDict:
199202 self ._clp_config .database .host
200203 ),
201204 }
202-
203- if self ._clp_config .compression_scheduler .type == OrchestrationType .SPIDER :
204- env_vars ["SPIDER_DB_NAME" ] = self ._clp_config .database .names [ClpDbNameType .SPIDER ]
205+ else :
206+ env_vars ["CLP_DB_HOST" ] = _get_ip_from_hostname (self ._clp_config .database .host )
205207
206208 # Credentials
207209 credentials = self ._clp_config .database .credentials
@@ -275,6 +277,8 @@ def _set_up_env_for_queue(self) -> EnvVarsDict:
275277 "CLP_EXTRA_HOST_QUEUE_NAME" : QUEUE_COMPONENT_NAME ,
276278 "CLP_EXTRA_HOST_QUEUE_ADDR" : _resolve_external_host (self ._clp_config .queue .host ),
277279 }
280+ else :
281+ env_vars ["CLP_QUEUE_HOST" ] = _get_ip_from_hostname (self ._clp_config .queue .host )
278282
279283 # Credentials
280284 env_vars |= {
@@ -359,6 +363,8 @@ def _set_up_env_for_redis(self) -> EnvVarsDict:
359363 "CLP_EXTRA_HOST_REDIS_NAME" : REDIS_COMPONENT_NAME ,
360364 "CLP_EXTRA_HOST_REDIS_ADDR" : _resolve_external_host (self ._clp_config .redis .host ),
361365 }
366+ else :
367+ env_vars ["CLP_REDIS_HOST" ] = _get_ip_from_hostname (self ._clp_config .redis .host )
362368
363369 # Credentials
364370 env_vars |= {
@@ -463,6 +469,10 @@ def _set_up_env_for_results_cache(self) -> EnvVarsDict:
463469 self ._clp_config .results_cache .host
464470 ),
465471 }
472+ else :
473+ env_vars ["CLP_RESULTS_CACHE_HOST" ] = _get_ip_from_hostname (
474+ self ._clp_config .results_cache .host
475+ )
466476
467477 return env_vars
468478
0 commit comments