Принимать файл отдельно от обработки, чтобы задание переживало рестарт и повторную доставку.

This commit is contained in:
2026-11-06 22:43:34 +03:00
parent 276dbdad8a
commit 6e512e3978
32 changed files with 3832 additions and 33 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
cid=$(docker ps -q --filter "label=lab.instance_id=${TARGET_INSTANCE_ID}")
if [ -z "$cid" ]; then
echo "no running API replica for the requested instance" >&2
exit 1
fi
# Leave this replica stopped. Do not stop the database, broker, or load balancer.
docker stop -t 5 $cid >/dev/null
exit 0