Skip to content

Commit 748e613

Browse files
committed
preparing for the finish
1 parent a47db41 commit 748e613

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

services/autoscaling/src/simcore_service_autoscaling/core/errors.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,6 @@ class DaskNoWorkersError(AutoscalingRuntimeError):
4343

4444

4545
class DaskWorkerNotFoundError(AutoscalingRuntimeError):
46-
msg_template: str = "Dask worker running on {worker_host} is not registered to scheduler in {url}, it is not found!"
46+
msg_template: str = (
47+
"Dask worker running on {worker_host} is not registered to scheduler in {url}, it is not found!"
48+
)

services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_auto_scaling_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,14 @@ async def _find_needed_instances(
694694
try:
695695
# check if exact instance type is needed first
696696
if task_required_ec2:
697+
# TODO: we need to adjust the available types to cope with the threads resource
698+
# and also with the dask resource reduction!
697699
defined_ec2 = find_selected_instance_type_for_task(
698700
task_required_ec2,
699701
available_ec2_types,
700702
task,
701703
task_required_resources,
704+
auto_scaling_mode,
702705
)
703706
needed_new_instance_types_for_tasks.append(
704707
AssignedTasksToInstanceType(
@@ -709,6 +712,8 @@ async def _find_needed_instances(
709712
)
710713
)
711714
else:
715+
# TODO: same here. so probably the best is to adjust prior to calling
716+
# it is differnet from dynamic/computational
712717
# we go for best fitting type
713718
best_ec2_instance = utils_ec2.find_best_fitting_ec2_instance(
714719
available_ec2_types,

0 commit comments

Comments
 (0)