forked from mtusi2026/mtusi2026lab4
готово
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user