@echo off rem Hook for tests/resilience.py --mode failover on Windows (same as scripts/stop-one.sh). rem Python on Windows cannot start .sh files directly (WinError 193), a .cmd file works. rem Stops only the api replica from TARGET_INSTANCE_ID, the logic is in scripts\stop_one.py. python "%~dp0stop_one.py" exit /b %ERRORLEVEL%