@@ -315,17 +315,19 @@ def compute_task_labels(
315
315
ValidationError
316
316
"""
317
317
product_name = run_metadata .get ("product_name" , UNDEFINED_DOCKER_LABEL )
318
- standard_simcore_labels = StandardSimcoreDockerLabels .model_construct (
319
- user_id = user_id ,
320
- project_id = project_id ,
321
- node_id = node_id ,
322
- product_name = product_name ,
323
- simcore_user_agent = run_metadata .get (
324
- "simcore_user_agent" , UNDEFINED_DOCKER_LABEL
325
- ),
326
- swarm_stack_name = UNDEFINED_DOCKER_LABEL , # NOTE: there is currently no need for this label in the comp backend
327
- memory_limit = node_requirements .ram ,
328
- cpu_limit = node_requirements .cpu ,
318
+ standard_simcore_labels = StandardSimcoreDockerLabels .model_validate (
319
+ {
320
+ "user_id" : user_id ,
321
+ "project_id" : project_id ,
322
+ "node_id" : node_id ,
323
+ "product_name" : product_name ,
324
+ "simcore_user_agent" : run_metadata .get (
325
+ "simcore_user_agent" , UNDEFINED_DOCKER_LABEL
326
+ ),
327
+ "swarm_stack_name" : UNDEFINED_DOCKER_LABEL , # NOTE: there is currently no need for this label in the comp backend
328
+ "memory_limit" : node_requirements .ram ,
329
+ "cpu_limit" : node_requirements .cpu ,
330
+ }
329
331
).to_simcore_runtime_docker_labels ()
330
332
return standard_simcore_labels | TypeAdapter (ContainerLabelsDict ).validate_python (
331
333
{
@@ -633,7 +635,7 @@ def check_if_cluster_is_able_to_run_pipeline(
633
635
634
636
635
637
async def wrap_client_async_routine (
636
- client_coroutine : Coroutine [Any , Any , Any ] | Any | None
638
+ client_coroutine : Coroutine [Any , Any , Any ] | Any | None ,
637
639
) -> Any :
638
640
"""Dask async behavior does not go well with Pylance as it returns
639
641
a union of types. this wrapper makes both mypy and pylance happy"""
0 commit comments