File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
services/autoscaling/src/simcore_service_autoscaling Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,6 @@ class DaskNoWorkersError(AutoscalingRuntimeError):
4343
4444
4545class 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+ )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments