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 34446c5 commit f68a40dCopy full SHA for f68a40d
services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_utils_computational.py
@@ -3,8 +3,10 @@
3
4
from aws_library.ec2 import Resources
5
from dask_task_models_library.resource_constraints import (
6
+ DASK_WORKER_THREAD_RESOURCE_NAME,
7
get_ec2_instance_type_from_resources,
8
)
9
+from pydantic import ByteSize
10
11
from ...models import DaskTask
12
@@ -17,7 +19,8 @@
17
19
def resources_from_dask_task(task: DaskTask) -> Resources:
18
20
return Resources(
21
cpus=task.required_resources.get("CPU", _DEFAULT_MAX_CPU),
- ram=task.required_resources.get("RAM", _DEFAULT_MAX_RAM),
22
+ ram=ByteSize(task.required_resources.get("RAM", _DEFAULT_MAX_RAM)),
23
+ generic_resources={DASK_WORKER_THREAD_RESOURCE_NAME: 1},
24
25
26
0 commit comments