Skip to content

Add preflight port check before loading startup tasks#11321

Open
seungwoo-ji-03 wants to merge 2 commits intoComfy-Org:masterfrom
seungwoo-ji-03:fix/preflight-port-check
Open

Add preflight port check before loading startup tasks#11321
seungwoo-ji-03 wants to merge 2 commits intoComfy-Org:masterfrom
seungwoo-ji-03:fix/preflight-port-check

Conversation

@seungwoo-ji-03
Copy link
Copy Markdown

Summary

  • add a fail-fast port availability check right after startup begins so we exit before loading custom nodes
  • provide clear errors for invalid listen addresses or already-bound ports

Testing

  • manual: started ComfyUI with default args; server started successfully
  • manual: bound another process to 8188, then started ComfyUI; startup logged port-in-use error and exited

Issue

@comfy-pr-bot
Copy link
Copy Markdown
Member

Test Evidence Check

⚠️ Warning: Visual Documentation Missing

If this PR changes user-facing behavior, visual proof (screen recording or screenshot) is required. PRs without applicable visual documentation may not be reviewed until provided.

You can add it by:

  • GitHub: Drag & drop media directly into the PR description
  • YouTube: Include a link to a short demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run port check at the beginning of the main.py

2 participants