Implement durable S3 attachments and reconciliation

This commit is contained in:
Tmribob
2026-11-07 00:29:30 +03:00
parent ec540a1a72
commit 71d72c88b9
57 changed files with 4660 additions and 37 deletions
+17
View File
@@ -0,0 +1,17 @@
@echo off
setlocal
cd /d "%~dp0.."
if "%COMPOSE_ENV_FILE%"=="" set COMPOSE_ENV_FILE=.env
if "%TARGET_INSTANCE_ID%"=="" (
echo TARGET_INSTANCE_ID is required >&2
exit /b 2
)
if not "%TARGET_INSTANCE_ID%"=="api-1" if not "%TARGET_INSTANCE_ID%"=="api-2" (
echo Invalid TARGET_INSTANCE_ID: %TARGET_INSTANCE_ID% >&2
exit /b 2
)
echo stop-one: stopping API replica %TARGET_INSTANCE_ID%
docker compose --env-file %COMPOSE_ENV_FILE% stop --timeout 10 %TARGET_INSTANCE_ID%
if errorlevel 1 exit /b 1
echo stop-one: %TARGET_INSTANCE_ID% stopped
exit /b 0