Files
mtusi2026lab7/scripts/restart.cmd
T
ng14 3d5c6a6689
Skeleton contracts / contracts (pull_request) Canceled after 0s
ЛР7
2026-11-08 00:33:25 +03:00

12 lines
610 B
Batchfile

@echo off
rem Windows restart hook for make test-persistence: same steps as scripts/restart.sh.
rem Python on Windows cannot run .sh directly (WinError 193), so this .cmd is used instead.
rem Restarts ALL api replicas, the worker and ALL stores (PostgreSQL, Valkey, S3 SeaweedFS, RabbitMQ),
rem then the balancer. Volumes are kept (no down -v, no queue purge). Same containers, new start time.
cd /d "%~dp0.."
docker compose stop api worker || exit /b 1
docker compose restart postgres valkey s3 broker || exit /b 1
docker compose start worker api || exit /b 1
docker compose restart lb || exit /b 1
exit /b 0