nikdevs commited on
Commit
c771389
·
verified ·
1 Parent(s): cd10bbf

minimax: comfy smoke test before handler start

Browse files
Files changed (1) hide show
  1. worker/minimax_start.sh +8 -0
worker/minimax_start.sh CHANGED
@@ -102,6 +102,14 @@ open("/comfyui/custom_nodes/lora_from_url.py", "wb").write(urllib.request.urlope
102
  print("[minimax] lora_from_url node installed")
103
  PYEOF
104
 
 
 
 
 
 
 
 
 
105
  # Background log shipper: uploads the boot log a few times so the tail of a
106
  # crashed ComfyUI startup is visible from outside.
107
  "$PY" -m pip show huggingface_hub >/dev/null 2>&1 || "$PY" -m pip install -q huggingface_hub
 
102
  print("[minimax] lora_from_url node installed")
103
  PYEOF
104
 
105
+ # Smoke-test ComfyUI before handing over to /start.sh: if it can't even
106
+ # import/boot, fail the container now (with the log shipped) instead of
107
+ # letting the handler run against a dead server — FlashBoot would happily
108
+ # snapshot that broken state and resurrect it forever.
109
+ echo "[minimax] comfy smoke test..."
110
+ ( cd "$COMFY" && timeout 300 "$PY" main.py --quick-test-for-ci )
111
+ echo "[minimax] comfy smoke test OK"
112
+
113
  # Background log shipper: uploads the boot log a few times so the tail of a
114
  # crashed ComfyUI startup is visible from outside.
115
  "$PY" -m pip show huggingface_hub >/dev/null 2>&1 || "$PY" -m pip install -q huggingface_hub