File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
services/director-v2/src/simcore_service_director_v2 Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2424
2525UNDEFINED_STR_METADATA = "undefined-metadata"
2626UNDEFINED_DOCKER_LABEL = "undefined-label"
27+ UNDEFINED_API_BASE_URL = "https://api.local"
Original file line number Diff line number Diff line change 3939from simcore_sdk .node_ports_v2 .links import ItemValue as _NPItemValue
4040from sqlalchemy .ext .asyncio import AsyncEngine
4141
42- from ..constants import UNDEFINED_DOCKER_LABEL
42+ from ..constants import UNDEFINED_API_BASE_URL , UNDEFINED_DOCKER_LABEL
4343from ..core .errors import (
4444 ComputationalBackendNotConnectedError ,
4545 ComputationalSchedulerChangedError ,
@@ -316,6 +316,7 @@ async def compute_task_envs(
316316 wallet_id : WalletID | None ,
317317) -> ContainerEnvsDict :
318318 product_name = metadata .get ("product_name" , UNDEFINED_DOCKER_LABEL )
319+ product_api_base_url = metadata .get ("product_api_base_url" , UNDEFINED_API_BASE_URL )
319320 task_envs = node_image .envs
320321 if task_envs :
321322 vendor_substituted_envs = await substitute_vendor_secrets_in_specs (
@@ -330,6 +331,7 @@ async def compute_task_envs(
330331 vendor_substituted_envs ,
331332 user_id = user_id ,
332333 product_name = product_name ,
334+ product_api_base_url = product_api_base_url ,
333335 project_id = project_id ,
334336 node_id = node_id ,
335337 service_run_id = resource_tracking_run_id ,
You can’t perform that action at this time.
0 commit comments