Реализовать асинхронную обработку вложений

This commit is contained in:
2026-11-17 18:21:09 +03:00
parent 4d54ba3848
commit e8becaf761
51 changed files with 2234 additions and 58 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
if [ "$#" -ne 1 ]; then
printf '%s\n' 'usage: replay-attachment.sh ATTACHMENT_ID' >&2
exit 2
fi
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$(dirname -- "$script_dir")"
compose_file=${COMPOSE_FILE_PATH:-compose.yaml}
docker compose -f "$compose_file" --env-file .env run --rm \
publisher python -m app.tools.replay_failed --attachment-id "$1"