Implement durable S3 attachments and reconciliation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user