File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
services/autoscaling/src/simcore_service_autoscaling/modules Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -333,14 +333,12 @@ async def try_retire_nodes(
333333async def add_instance_generic_resources (
334334 settings : DaskMonitoringSettings , instance : EC2InstanceData
335335) -> None :
336- instance_threads = round (instance .available_resources .cpus )
337- if settings .AUTOSCALING_DASK . DASK_NTHREADS > 0 :
336+ instance_threads = round (instance .resources .cpus )
337+ if settings .DASK_NTHREADS > 0 :
338338 # this overrides everything
339- instance_threads = settings .AUTOSCALING_DASK .DASK_NTHREADS
340- if settings .AUTOSCALING_DASK .DASK_NTHREADS_MULTIPLIER > 1 :
341- instance_threads = (
342- instance_threads * settings .AUTOSCALING_DASK .DASK_NTHREADS_MULTIPLIER
343- )
344- instance .available_resources .generic_resources [
345- _DASK_WORKER_THREAD_RESOURCE_NAME
346- ] = instance_threads
339+ instance_threads = settings .DASK_NTHREADS
340+ if settings .DASK_NTHREADS_MULTIPLIER > 1 :
341+ instance_threads = instance_threads * settings .DASK_NTHREADS_MULTIPLIER
342+ instance .resources .generic_resources [_DASK_WORKER_THREAD_RESOURCE_NAME ] = (
343+ instance_threads
344+ )
You can’t perform that action at this time.
0 commit comments