forked from mtusi2026/mtusi2026lab4
12 lines
435 B
Bash
Executable File
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
|