INNER CODE UNIT · Python
log_every
runpod-workers/worker-comfyui · handler.py:284
log_every = max(1, int(10_000 / delay))
attempt = 0
while True:
# --- Check if ComfyUI process is still alive ---
process_status = _is_comfyui_process_alive()
if process_status is False:
print(
"worker-comfyui - ComfyUI process has exited. "
"Server will not become reachable."
)
return False
try:
response = requests.get(url, timeout=5)
if response.status_code == 200:
print(f"worker-comfyui - API is reachable")
return True