← back to Wallco Ai
generate_designs.js: bump ComfyUI poll timeout 5 min → 15 min
29ac6e7159e96d96ee48e340df62f81d46591f29 · 2026-05-25 20:44:16 -0700 · Steve Abrams
DA-4 blocker: drunk-animals prompts grew to ~2 KB with the 2026-05-25
expansion (Met PD reference + texture substrate + deep tone-on-tone +
TONE_ON_TONE_SUFFIX). With concurrent auto-ticks (drunk_animals_tick
every 4 min + generator_tick every 3 min + night-builder) the ComfyUI
queue routinely sits 5–10 deep, so individual generate_designs.js
invocations are hitting the 5-min wall-clock timeout before their
prompt ever runs.
Default bumped to 15 min. Overridable via COMFY_POLL_TIMEOUT_SEC env.
Damask category was still landing rows (#42890 +) but drunk-animals
specifically had zero new rows in 11+ hours; expect that to clear
once the next cron wave fires with the new timeout.
No prompt body changes — Steve directives 2026-05-25 (alcohol + joint
+ swing + texture + Met-PD + deep tone-on-tone + whimsical) all stay
in.
Files touched
M scripts/generate_designs.js
Diff
commit 29ac6e7159e96d96ee48e340df62f81d46591f29
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 25 20:44:16 2026 -0700
generate_designs.js: bump ComfyUI poll timeout 5 min → 15 min
DA-4 blocker: drunk-animals prompts grew to ~2 KB with the 2026-05-25
expansion (Met PD reference + texture substrate + deep tone-on-tone +
TONE_ON_TONE_SUFFIX). With concurrent auto-ticks (drunk_animals_tick
every 4 min + generator_tick every 3 min + night-builder) the ComfyUI
queue routinely sits 5–10 deep, so individual generate_designs.js
invocations are hitting the 5-min wall-clock timeout before their
prompt ever runs.
Default bumped to 15 min. Overridable via COMFY_POLL_TIMEOUT_SEC env.
Damask category was still landing rows (#42890 +) but drunk-animals
specifically had zero new rows in 11+ hours; expect that to clear
once the next cron wave fires with the new timeout.
No prompt body changes — Steve directives 2026-05-25 (alcohol + joint
+ swing + texture + Met-PD + deep tone-on-tone + whimsical) all stay
in.
---
scripts/generate_designs.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/scripts/generate_designs.js b/scripts/generate_designs.js
index d38e668..ab61b87 100644
--- a/scripts/generate_designs.js
+++ b/scripts/generate_designs.js
@@ -308,10 +308,14 @@ function genComfy(prompt, seed, outPath) {
try { promptId = JSON.parse(submit).prompt_id; } catch { throw new Error('ComfyUI submit returned non-JSON: ' + submit.slice(0, 200)); }
if (!promptId) throw new Error('ComfyUI did not return prompt_id');
- // Poll history (max 5 min)
+ // Poll history (default 15 min — bumped from 5 min on 2026-05-25 after
+ // drunk-animals prompts grew to ~2 KB with Met-PD + texture + deep-tone
+ // additions, and ComfyUI queue depth from concurrent auto-ticks pushed
+ // wall-clock past the old 5-min limit. Override via COMFY_POLL_TIMEOUT_SEC.
+ const POLL_TIMEOUT_MS = (parseInt(process.env.COMFY_POLL_TIMEOUT_SEC, 10) || 15 * 60) * 1000;
const start = Date.now();
let images;
- while (Date.now() - start < 5 * 60_000) {
+ while (Date.now() - start < POLL_TIMEOUT_MS) {
require('child_process').execSync('sleep 2');
let hist;
try {
@@ -322,7 +326,7 @@ function genComfy(prompt, seed, outPath) {
images = entry.outputs['9'].images; break;
}
}
- if (!images) throw new Error(`ComfyUI generation timed out after 5 min (prompt_id=${promptId})`);
+ if (!images) throw new Error(`ComfyUI generation timed out after ${POLL_TIMEOUT_MS/60000} min (prompt_id=${promptId})`);
// Pull the first image
const im = images[0];
← 0e37522 design-coordinate cards: image-only grid, hover overlay reve
·
back to Wallco Ai
·
drunk-* gates relaxed: seamless tolerance 12→30 + drop confl 001cb74 →