Fix Comfy wake: launch when HTTP is down instead of treating leftover Python as already booting.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-02 07:58:50 -05:00
co-authored by Cursor
parent aa2cefbcf2
commit 2ae5f6fb2e
3 changed files with 28 additions and 17 deletions
+2 -2
View File
@@ -154,7 +154,7 @@ export async function requestComfyWake() {
statusMessage: 'COMFY_CONTROL_URL is not set. The studio cannot poke the Beast host agent.'
})
}
const remote = await controlRequest('/start', 'POST')
const remote = await controlRequest('/start', 'POST', 25_000)
if (!remote) {
throw createError({
statusCode: 503,
@@ -263,7 +263,7 @@ async function startComfy() {
}
lastStartAt = now
const remote = await controlRequest('/start', 'POST')
const remote = await controlRequest('/start', 'POST', 25_000)
throwIfTrainingBusy(remote)
if (remote?.ok || remote?.started) {
log('start-remote', { pid: remote.pid || null })