From 58b4755475fdb053ec26da43fc2984b9f8b8779c Mon Sep 17 00:00:00 2001 From: Hanashi Date: Thu, 6 Aug 2026 03:23:09 -0400 Subject: [PATCH] start-comfyui: wait out mid-shutdown process before already-running check Co-Authored-By: Claude Fable 5 --- scripts/pod/start-comfyui.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/pod/start-comfyui.sh b/scripts/pod/start-comfyui.sh index f921e46..2d9aa25 100755 --- a/scripts/pod/start-comfyui.sh +++ b/scripts/pod/start-comfyui.sh @@ -6,6 +6,11 @@ set -euo pipefail LOG=/workspace/minimax-h3/comfyui.log +# wait out any process that is mid-shutdown before deciding it's "running" +for i in 1 2 3 4 5; do + pgrep -f "python3? main.py" >/dev/null || break + sleep 2 +done if pgrep -f "python3? main.py" >/dev/null; then echo "ComfyUI already running" exit 0