Files
mtusi2026lab7/scripts/stop-one.cmd
T
scarletsky b035b50dbd
Skeleton contracts / contracts (pull_request) Canceled after 0s
лабораторная работа 7
2026-11-18 01:02:09 +03:00

10 lines
393 B
Batchfile

@echo off
rem Windows-вариант stop-one.sh (lab7): TARGET_INSTANCE_ID (alias реплики) -> один контейнер api, остаётся остановленным.
rem python tests\resilience.py --mode failover --action-script scripts\stop-one.cmd
setlocal
cd /d "%~dp0.."
set PY=python
where python >nul 2>nul || set PY=py -3
%PY% scripts\ops.py stop-one
exit /b %ERRORLEVEL%