Files
mtusi2026lab7-fork/scripts/stop-one.cmd

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%