Skip to content

Commit

Permalink
protected
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Oct 16, 2024
1 parent 33237ba commit f959a48
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ async def _try_attach_pending_ec2s(
)


async def sorted_allowed_instance_types(app: FastAPI) -> list[EC2InstanceType]:
async def _sorted_allowed_instance_types(app: FastAPI) -> list[EC2InstanceType]:
app_settings: ApplicationSettings = app.state.settings
assert app_settings.AUTOSCALING_EC2_INSTANCES # nosec
ec2_client = get_ec2_client(app)
Expand Down Expand Up @@ -1217,8 +1217,7 @@ async def auto_scale_cluster(
If there are such tasks, this method will allocate new machines in AWS to cope with
the additional load.
"""

allowed_instance_types = await sorted_allowed_instance_types(app)
allowed_instance_types = await _sorted_allowed_instance_types(app)
cluster = await _analyze_current_cluster(
app, auto_scaling_mode, allowed_instance_types
)
Expand Down

0 comments on commit f959a48

Please sign in to comment.