Skip to content

Commit e9e92fa

Browse files
committed
protected
1 parent 1032d56 commit e9e92fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/autoscaling/src/simcore_service_autoscaling/modules/auto_scaling_core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ async def _try_attach_pending_ec2s(
327327
)
328328

329329

330-
async def sorted_allowed_instance_types(app: FastAPI) -> list[EC2InstanceType]:
330+
async def _sorted_allowed_instance_types(app: FastAPI) -> list[EC2InstanceType]:
331331
app_settings: ApplicationSettings = app.state.settings
332332
assert app_settings.AUTOSCALING_EC2_INSTANCES # nosec
333333
ec2_client = get_ec2_client(app)
@@ -1217,8 +1217,7 @@ async def auto_scale_cluster(
12171217
If there are such tasks, this method will allocate new machines in AWS to cope with
12181218
the additional load.
12191219
"""
1220-
1221-
allowed_instance_types = await sorted_allowed_instance_types(app)
1220+
allowed_instance_types = await _sorted_allowed_instance_types(app)
12221221
cluster = await _analyze_current_cluster(
12231222
app, auto_scaling_mode, allowed_instance_types
12241223
)

0 commit comments

Comments
 (0)