Skip to content

Commit 5bb5bf5

Browse files
committed
renaming
1 parent 8f738f5 commit 5bb5bf5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/autoscaling/src/simcore_service_autoscaling/modules/cluster_scaling/_auto_scaling_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from ...utils.warm_buffer_machines import (
5555
get_activated_buffer_ec2_tags,
5656
get_deactivated_buffer_ec2_tags,
57-
is_buffer_machine,
57+
is_warm_buffer_machine,
5858
)
5959
from ..docker import get_docker_client
6060
from ..ec2 import get_ec2_client
@@ -211,7 +211,7 @@ async def _make_pending_buffer_ec2s_join_cluster(
211211
if buffer_ec2s_pending := [
212212
i.ec2_instance
213213
for i in cluster.pending_ec2s
214-
if is_buffer_machine(i.ec2_instance.tags)
214+
if is_warm_buffer_machine(i.ec2_instance.tags)
215215
and (DOCKER_JOIN_COMMAND_EC2_TAG_KEY not in i.ec2_instance.tags)
216216
]:
217217
# started buffer instance shall be asked to join the cluster once they are running

services/autoscaling/src/simcore_service_autoscaling/utils/warm_buffer_machines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_deactivated_buffer_ec2_tags(base_ec2_tags: EC2Tags) -> EC2Tags:
3333
return new_base_ec2_tags
3434

3535

36-
def is_buffer_machine(tags: EC2Tags) -> bool:
36+
def is_warm_buffer_machine(tags: EC2Tags) -> bool:
3737
return bool(BUFFER_MACHINE_TAG_KEY in tags)
3838

3939

0 commit comments

Comments
 (0)