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}"