From 25d33e76d35a69affbe87f7fe22c19fd0b544fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Tue, 28 Apr 2026 10:26:08 +0800 Subject: [PATCH] chore: moicen manual enqueue script for IMAGE_FORM_COMPRESS PG+Redis Made-with: Cursor --- ...icen_enqueue_image_form_compress_manual.sh | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 scripts/moicen_enqueue_image_form_compress_manual.sh diff --git a/scripts/moicen_enqueue_image_form_compress_manual.sh b/scripts/moicen_enqueue_image_form_compress_manual.sh new file mode 100644 index 0000000..d57e242 --- /dev/null +++ b/scripts/moicen_enqueue_image_form_compress_manual.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +# 在 moicen 上插入一条 IMAGE_FORM_COMPRESS(PENDING)+ Redis payload,供 htyproc 拉取验收。 +# 用法(moicen): +# export PGPASSWORD=postgres +# bash moicen_enqueue_image_form_compress_manual.sh +set -euo pipefail + +TASK_ID="$(uuidgen | tr '[:upper:]' '[:lower:]')" +PUBLIC_URL="${PUBLIC_URL_OVERRIDE:-https://upyun.moicen.com/music-room/e2e-manual-${TASK_ID}.jpg}" + +export PGPASSWORD="${PGPASSWORD:-postgres}" + +psql -h localhost -U postgres -d htytask_moicen -v ON_ERROR_STOP=1 </dev/null + +echo "task_id=${TASK_ID}" +echo "redis_key=TS_${TASK_ID}" +echo "payload=${PAYLOAD}"