From 965559f88d4fb46bf4576b7ee808e4c60a0225e7 Mon Sep 17 00:00:00 2001 From: Debian Date: Wed, 7 Jan 2026 22:20:30 +0000 Subject: [PATCH] Remove debug find command that times out on large volumes The find command searching for .safetensors across /runpod-volume was timing out after 30 seconds on volumes with many files. Co-Authored-By: Claude Opus 4.5 --- handler.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/handler.py b/handler.py index 8aee383..194e8b4 100644 --- a/handler.py +++ b/handler.py @@ -53,19 +53,6 @@ def start_comfyui(): if comfyui_process is not None and comfyui_process.poll() is None: return True - # Debug: show model paths - print("=== Model Path Debug ===") - import subprocess - for path in ["/runpod-volume", "/runpod-volume/models", "/workspace/ComfyUI/models"]: - result = subprocess.run(["ls", "-la", path], capture_output=True, text=True) - print(f"{path}:") - print(result.stdout[:500] if result.stdout else f" Error: {result.stderr}") - - # Find any .safetensors files - result = subprocess.run(["find", "/runpod-volume", "-name", "*.safetensors", "-type", "f"], - capture_output=True, text=True, timeout=30) - print(f"Safetensors on volume:\n{result.stdout[:1000] if result.stdout else 'None found'}") - print("Starting ComfyUI server...") comfyui_process = subprocess.Popen(