From 6c3db74fd3b92bbea93fdcea8e4f97e40f8c74e2 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Tue, 1 Sep 2026 20:49:54 +0800 Subject: [PATCH] =?UTF-8?q?perf(deploy):=20Worker=20=E4=BC=98=E9=9B=85?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=B6=85=E6=97=B6=E4=BB=8E=20300s=20?= =?UTF-8?q?=E9=99=8D=E8=87=B3=20120s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 大多数部署时 Worker 无长任务运行,120s 足够 - 减少不必要的等待时间 --- scripts/ci_staging_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci_staging_deploy.sh b/scripts/ci_staging_deploy.sh index 5b055c68b..70aa0955c 100755 --- a/scripts/ci_staging_deploy.sh +++ b/scripts/ci_staging_deploy.sh @@ -397,7 +397,7 @@ fi echo "Stopping old containers..." # 优雅关闭:先 stop(发 SIGTERM,等待),再 rm # Worker 需要更长时间(视频任务最长可能5分钟) -docker stop -t 300 xiaoxia-worker-staging 2>/dev/null || true +docker stop -t 120 xiaoxia-worker-staging 2>/dev/null || true docker stop -t 30 xiaoxia-api-staging 2>/dev/null || true docker stop -t 10 xiaoxia-web-staging 2>/dev/null || true docker rm xiaoxia-worker-staging xiaoxia-api-staging xiaoxia-web-staging 2>/dev/null || true