From 2ac4dfc810181b5fc39f4b216f7144534810ce8a Mon Sep 17 00:00:00 2001 From: claude_dev Date: Mon, 7 Sep 2026 12:30:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(data):=20wrapper=20=E5=8A=A0=20--no-healthc?= =?UTF-8?q?heck(=E9=95=9C=E5=83=8F=20healthcheck=20=E6=98=AF=20web=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E4=B8=93=E7=94=A8,=E7=88=AC=E8=99=AB?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E6=81=92=20unhealthy=20=E8=AF=AF=E6=8A=A5)?= =?UTF-8?q?=20[nas]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/nas_sync/run_corpus_standalone.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/nas_sync/run_corpus_standalone.sh b/scripts/nas_sync/run_corpus_standalone.sh index 229bb82..a5e4e08 100644 --- a/scripts/nas_sync/run_corpus_standalone.sh +++ b/scripts/nas_sync/run_corpus_standalone.sh @@ -29,6 +29,9 @@ # DSM 任务(sanguo-corpus-daily, 每日 06:00, 用户=admin)命令: # bash /volume1/stock/corpus/run_corpus.sh # +# --no-healthcheck: 镜像 HEALTHCHECK=curl :8000/health 是 web 服务专用, 爬虫 +# 一次性容器无此端口 → unhealthy 恒误报(09-07 infra 巡检点名), 关掉防再误读。 +# # 注意: 镜像 tag 若将来基建重建改名,这里要跟着改(与主容器 compose 同源)。 set -u DOCKER=/var/packages/Docker/target/usr/bin/docker @@ -41,7 +44,7 @@ GID_ADMINS=101 # administrators(Synology ACL 授权组,金丝雀实测必带) { echo "=== $(date '+%F %T') standalone-container corpus run start ===" "$DOCKER" run --rm --name sanguo-corpus --user "${UID_ADMIN}:${GID_ADMIN}" \ - --group-add "${GID_ADMINS}" --entrypoint python \ + --group-add "${GID_ADMINS}" --no-healthcheck --entrypoint python \ -v /volume1/stock:/volume1/stock \ -v "$APP":/app:ro \ sanguo_vnpy_v2:lock-aligned \ @@ -51,7 +54,7 @@ GID_ADMINS=101 # administrators(Synology ACL 授权组,金丝雀实测必带) rc_back=0 if [ "$rc_daily" -eq 0 ] || [ "$rc_daily" -eq 3 ]; then "$DOCKER" run --rm --name sanguo-corpus --user "${UID_ADMIN}:${GID_ADMIN}" \ - --group-add "${GID_ADMINS}" --entrypoint python \ + --group-add "${GID_ADMINS}" --no-healthcheck --entrypoint python \ -v /volume1/stock:/volume1/stock \ -v "$APP":/app:ro \ sanguo_vnpy_v2:lock-aligned \