style: auto-format with black + isort + ruff + prettier [skip ci-format-check]

This commit is contained in:
CI Bot
2026-09-26 10:47:27 +00:00
committed by saas-backend
parent 105ab54059
commit 39c064ba1c
4 changed files with 49 additions and 17 deletions
@@ -57,13 +57,13 @@ from video_processing.tts_engine import TtsEngine
from video_processing.watermark_engine import WatermarkConfig, WatermarkEngine
from packages.domain.render_layer_utils import LAYER_Z_INDEX as _IMPORTED_LAYER_Z_INDEX
from packages.shared.gpu_encoder import GpuEncodeError, get_gpu_encoder
from packages.domain.render_layer_utils import clip_adjusted_duration as _clip_adjusted_duration_pure
from packages.domain.render_layer_utils import clip_effective_duration as _clip_effective_duration_pure
from packages.domain.render_layer_utils import clip_playback_speed as _clip_playback_speed_pure
from packages.domain.render_layer_utils import estimate_total_duration as _estimate_total_duration_pure
from packages.domain.render_layer_utils import resolve_layer_role as _resolve_layer_role_pure
from packages.domain.tts_config import TtsConfig
from packages.shared.gpu_encoder import GpuEncodeError, get_gpu_encoder
logger = logging.getLogger(__name__)
@@ -2192,13 +2192,15 @@ class UnifiedRenderService:
if health.ready:
logger.info(
"[gpu-encoder] healthy endpoint=%s gpu=%s",
client.endpoint, health.gpu_name,
client.endpoint,
health.gpu_name,
)
self._gpu_health_ok = True
else:
logger.warning(
"[gpu-encoder] not ready: %s (endpoint=%s)",
health.error, client.endpoint,
health.error,
client.endpoint,
)
self._gpu_health_ok = False
except Exception as e: # noqa: BLE001
@@ -2254,7 +2256,8 @@ class UnifiedRenderService:
return False
logger.info(
"[gpu-encoder] mezzanine ready: %s (%.1fs, %d bytes), dispatching to P4000 nvenc...",
mezzanine_path.name, time.time() - t0,
mezzanine_path.name,
time.time() - t0,
mezzanine_path.stat().st_size if mezzanine_path.exists() else 0,
)
@@ -2269,7 +2272,8 @@ class UnifiedRenderService:
)
logger.info(
"[gpu-encoder] GPU nvenc encode done: %s (total %.1fs)",
output_path.name, time.time() - t0,
output_path.name,
time.time() - t0,
)
return True
except GpuEncodeError as e: