Skip to content

Commit 48a966c

Browse files
committed
renaming
1 parent f9dce42 commit 48a966c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ...core.settings import ApplicationSettings
1111
from ...utils.redis import create_lock_key_and_value
1212
from ..redis import get_redis_client
13-
from ._buffer_machines_pool_core import monitor_buffer_machines
13+
from ._warm_buffer_machines_pool_core import monitor_buffer_machines
1414
from ._provider_dynamic import DynamicAutoscalingProvider
1515

1616
_TASK_NAME_BUFFER: Final[str] = "Autoscaling Buffer Machines Pool"

services/autoscaling/tests/unit/test_modules_cluster_scaling_buffer_machine_core.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from pytest_simcore.helpers.logging_tools import log_context
2929
from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
3030
from simcore_service_autoscaling.constants import PRE_PULLED_IMAGES_EC2_TAG_KEY
31-
from simcore_service_autoscaling.modules.cluster_scaling._buffer_machines_pool_core import (
31+
from simcore_service_autoscaling.modules.cluster_scaling._warm_buffer_machines_pool_core import (
3232
monitor_buffer_machines,
3333
)
3434
from simcore_service_autoscaling.modules.cluster_scaling._provider_dynamic import (
@@ -161,9 +161,9 @@ async def _test_monitor_buffer_machines(
161161
):
162162
# 0. we have no instances now
163163
all_instances = await ec2_client.describe_instances(Filters=instance_type_filters)
164-
assert not all_instances[
165-
"Reservations"
166-
], f"There should be no instances at the start of the test. Found following instance ids: {[i['InstanceId'] for r in all_instances['Reservations'] if 'Instances' in r for i in r['Instances'] if 'InstanceId' in i]}"
164+
assert not all_instances["Reservations"], (
165+
f"There should be no instances at the start of the test. Found following instance ids: {[i['InstanceId'] for r in all_instances['Reservations'] if 'Instances' in r for i in r['Instances'] if 'InstanceId' in i]}"
166+
)
167167

168168
# 1. run, this will create as many buffer machines as needed
169169
with log_context(logging.INFO, "create buffer machines"):
@@ -388,9 +388,9 @@ async def test_monitor_buffer_machines_terminates_instances_with_incorrect_pre_p
388388
],
389389
):
390390
# have machines of correct type with missing pre-pulled images
391-
assert (
392-
len(pre_pull_images) > 1
393-
), "this test relies on pre-pulled images being filled with more than 1 image"
391+
assert len(pre_pull_images) > 1, (
392+
"this test relies on pre-pulled images being filled with more than 1 image"
393+
)
394394
buffer_machines = await create_buffer_machines(
395395
buffer_count + 5,
396396
next(iter(list(ec2_instances_allowed_types_with_only_1_buffered))),
@@ -520,9 +520,9 @@ def pre_pull_images(
520520
allowed_ec2_types.items(),
521521
)
522522
)
523-
assert (
524-
len(allowed_ec2_types_with_pre_pull_images_defined) <= 1
525-
), "more than one type with pre-pulled-images is disallowed in this test!"
523+
assert len(allowed_ec2_types_with_pre_pull_images_defined) <= 1, (
524+
"more than one type with pre-pulled-images is disallowed in this test!"
525+
)
526526

527527
if allowed_ec2_types_with_pre_pull_images_defined:
528528
return next(

0 commit comments

Comments
 (0)