Files
mtusi2026lab2/scripts/expiry.bat
T
2026-10-07 19:06:42 +03:00

11 lines
343 B
Batchfile

@echo off
cd /d "%~dp0.."
echo [expiry] starting api with SESSION_TTL_SECONDS=2
set SESSION_TTL_SECONDS=2
docker compose up -d api
timeout /t 10 /nobreak >nul
python student-tests\expiry_checks.py --base-url http://localhost:8080
set SESSION_TTL_SECONDS=
echo [expiry] restoring default TTL
docker compose up -d api
timeout /t 10 /nobreak >nul