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:
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user