Files
mtusi2026lab4/scripts/test-upload-memory.sh
2026-11-12 19:38:03 +03:00

12 lines
435 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
# Temporary profile: 5 admitted uploads per replica, serialized image decoding.
# Restore the ordinary project configuration even when the experiment fails.
restore_upload_profile() {
docker compose up -d --wait api >/dev/null 2>&1
}
trap restore_upload_profile EXIT INT TERM
UPLOAD_CONCURRENCY=5 docker compose up -d --wait api >/dev/null 2>&1
"${PYTHON:-python3}" tests/upload_memory.py