Skip to content

Commit f9c5e87

Browse files
committed
@sanderegg review: doc
1 parent c899568 commit f9c5e87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/autoscaling/src/simcore_service_autoscaling/modules/auto_scaling_core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ def _as_selection(instance_type: EC2InstanceType) -> int:
351351
# NOTE: will raise ValueError if allowed_instance_types not in allowed_instance_type_names
352352
return allowed_instance_type_names.index(f"{instance_type.name}")
353353

354-
# some instances might be able to run several tasks
355354
allowed_instance_types.sort(key=_as_selection)
356355
return allowed_instance_types
357356

@@ -501,7 +500,7 @@ async def _assign_tasks_to_current_cluster(
501500
) -> tuple[list, Cluster]:
502501
"""
503502
Evaluates whether a task can be executed on any instance within the cluster. If the task's resource requirements are met, the task is *denoted* as assigned to the cluster.
504-
Note: This is an estimation only since actual scheduling is handled by Dask.
503+
Note: This is an estimation only since actual scheduling is handled by Dask/Docker (depending on the mode).
505504
506505
Returns:
507506
A tuple containing:

0 commit comments

Comments
 (0)