We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b50374a commit 50443a6Copy full SHA for 50443a6
services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_utils_computational.py
@@ -16,7 +16,9 @@
16
17
def resources_from_dask_task(task: DaskTask) -> Resources:
18
return Resources(
19
- cpus=task.required_resources.get("CPU", _DEFAULT_MAX_CPU),
+ cpus=min(
20
+ task.required_resources.get("CPU", _DEFAULT_MAX_CPU), 1.0
21
+ ), # NOTE: dask-workers use 1 thread per CPU so going below will not scale
22
ram=task.required_resources.get("RAM", _DEFAULT_MAX_RAM),
23
)
24
0 commit comments