From 54b4639af2d14590b539dfa1bad81cfc03a56e40 Mon Sep 17 00:00:00 2001 From: aiyimickey <39365912+aiyimickey@users.noreply.github.com> Date: Wed, 1 Jul 2026 19:32:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20entrypoint=20=E5=AE=B9=E5=BF=8D=20worker?= =?UTF-8?q?=20=E5=A4=B1=E8=B4=A5=EF=BC=8CNext.js=20=E7=8B=AC=E7=AB=8B?= =?UTF-8?q?=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index dafaa30..6abd00e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -23,11 +23,11 @@ cleanup() { } trap cleanup SIGTERM SIGINT -# 守护循环:任一进程退出则容器退出 +# 守护循环:Next.js 退出则容器退出,Worker 失败仅警告 while true; do if ! kill -0 $WORKER_PID 2>/dev/null; then - echo "[entrypoint] Worker process exited" >&2 - exit 1 + echo "[entrypoint] Worker process exited (non-fatal)" >&2 + WORKER_PID=0 fi if ! kill -0 $NEXT_PID 2>/dev/null; then echo "[entrypoint] Next.js process exited" >&2