fix(nas): run_5m 一次性容器加 --no-healthcheck,根除 unhealthy 误报 [nas]
This commit is contained in:
@@ -15,13 +15,16 @@
|
||||
# DSM 任务(00:05 那条)命令改为: bash /volume1/stock/sanguo_5m/run_5m.sh
|
||||
#
|
||||
# 注意:镜像 tag 若将来基建重建改名,这里要跟着改(与主容器 compose 同源)。
|
||||
# 2026-09-07: 加 --no-healthcheck——镜像 HEALTHCHECK 是 web 服务专用
|
||||
# (curl :8000/health),一次性爬虫容器无此端口,30s 后恒 unhealthy 误报
|
||||
# (与 corpus 容器同款问题,run_corpus.sh 已由 corpus session 2ac4dfc 同修)。
|
||||
set -u
|
||||
DOCKER=/var/packages/Docker/target/usr/bin/docker
|
||||
LOG=/volume1/stock/sanguo_5m/cron.log
|
||||
|
||||
{
|
||||
echo "=== $(date '+%F %T') standalone-container 5m run start ==="
|
||||
"$DOCKER" run --rm --entrypoint python \
|
||||
"$DOCKER" run --rm --no-healthcheck --entrypoint python \
|
||||
-v /volume1/stock:/volume1/stock \
|
||||
-v /volume1/homes/admin/.sanguo_projects/sanguo_vnpy_v2:/app:ro \
|
||||
sanguo_vnpy_v2:lock-aligned \
|
||||
|
||||
Reference in New Issue
Block a user