fixed flake8 lint errors

This commit is contained in:
Илья Глазунов
2025-12-04 03:06:58 +03:00
parent cec6e927a7
commit 7662a7924a
17 changed files with 62 additions and 84 deletions
+3 -5
View File
@@ -34,10 +34,10 @@ def scale_cmd(ctx, scales: tuple, timeout: int, no_wait: bool):
pyserve scale api=4 # Scale api to 4 workers
pyserve scale api=4 admin=2 # Scale multiple services
"""
from ...config import Config
from .._runner import ServiceRunner
from ..output import console, print_error, print_info, print_success
from ..state import StateManager
from .._runner import ServiceRunner
from ...config import Config
scale_map = {}
for scale in scales:
@@ -72,9 +72,7 @@ def scale_cmd(ctx, scales: tuple, timeout: int, no_wait: bool):
print_info(f"Scaling {service}: {current}{workers} workers")
try:
success = await runner.scale_service(
service, workers, timeout=timeout, wait=not no_wait
)
success = await runner.scale_service(service, workers, timeout=timeout, wait=not no_wait)
if success:
print_success(f"Scaled {service} to {workers} workers")
else: