File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
services/autoscaling/src/simcore_service_autoscaling Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class TaskRequiresUnauthorizedEC2InstanceTypeError(AutoscalingRuntimeError):
1818
1919class TaskRequirementsAboveRequiredEC2InstanceTypeError (AutoscalingRuntimeError ):
2020 msg_template : str = (
21- "Task {task} requires {instance_type} but requires {resources}. "
21+ "Task {task} requires {instance_type} but requires {resources}. {resources_diff} are missing! "
2222 "TIP: Ensure task resources requirements fit required instance type available resources."
2323 )
2424
@@ -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 @@ -114,6 +114,7 @@ def find_selected_instance_type_for_task(
114114 task = task ,
115115 instance_type = selected_instance ,
116116 resources = task_required_resources ,
117+ resources_diff = task_required_resources - selected_instance .resources ,
117118 )
118119
119120 return selected_instance
You can’t perform that action at this time.
0 commit comments