Relaunch ComfyUI when a process is up but the API never becomes ready.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-25 19:40:52 -05:00
co-authored by Cursor
parent f5829995c8
commit 1a271c05a4
2 changed files with 18 additions and 15 deletions
-1
View File
@@ -67,7 +67,6 @@ const server = http.createServer(async (req, res) => {
}
if (req.method === 'POST' && url.pathname === '/start') {
if (await httpUp()) return json(res, 200, { ok: true, started: false, already: true })
if (await processUp()) return json(res, 200, { ok: true, started: false, booting: true })
const launched = startComfy()
return json(res, 200, { ok: true, ...launched })
}