Sleep Output
The Sleep for when nothing comes after
- dependency
If JN_Sleep is the pause you drop in the middle of a chain, JN_SleepOutput is the pause you drop at the end. Same idea - wait seconds, show a countdown progress bar - but it's an output node: no flow output, nothing to continue, it just sleeps and finishes. The whole point is a delay that terminates the run.
How it works
Mechanically it's identical to its sibling: func_sleep plus a ProgressBar, and the same count % every == 0 throttle. The one real difference is scope - seconds is capped at 3600 (an hour) here, versus the giant int64 range on JN_Sleep - and the fact that it returns nothing and ends the line.
- seconds - pause length, whole seconds, max 3600.
- every - sleep every Nth execution. Default 1 = always.
- count - the execution count fed in from a counter or math node; combined with
everyyou get "sleep every 5th run." - dependency - multiple inputs that force this node to run after whatever you wire in.
Why a terminal Sleep exists
Three genuinely useful jobs:
- End-of-batch pacing. You've got a loop or a queue of jobs, and you want a fixed pause between batches. A SleepOutput sitting at the end of the workflow adds that gap after the last node finishes, without threading a
flowwire through everything just to hold a timer. - Forcing execution order. Because
dependencyis a multiple input, you can make SleepOutput depend on a node whose output you otherwise wouldn't use. ComfyUI runs the graph topologically, so this is a clean way to say "wait until that node has run" - a common pattern for sequencing side-effects. - A visible delay timer. If you're demonstrating or testing something time-based, the progress bar is a nice touch that the plain
JN_Sleepgives you too - this one just doesn't ask you to route anything onward.
Install
Part of the JNComfy pack, installed once for all of it. ComfyUI Manager → search "JNComfy" → Install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/jn-jairo/jn_comfyui
restart, and pip install -r requirements.txt if you're doing it by hand (Manager does this automatically). As with the rest of the workflow/other nodes in this pack, the actual dependency needs are nil - it's plain Python sleep - but the pack's global install pulls the heavy audio/vision libraries regardless.
Gotchas
- It's an output node, so if it's the only output in the graph, it is the result of the run. ComfyUI treats output nodes as the reason to execute a graph - wire it up expecting it to be terminal.
- The
secondscap of 3600 will bite you if you convert a widget to an input and feed it something bigger; values above an hour simply won't be allowed. - As with all JNComfy nodes, remember the pack patches ComfyUI on startup. If modules fail to load after an update, the console shows "Failed to import module" - check for conflicts with other patch-heavy packs before debugging anything else.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| seconds | INT | 00–3600 | — |
| every | INT | 11–18446744073709550000 | — |
| count | INT | 00–18446744073709550000 | — |
| dependencyopt | * | — |
Outputs (0)
No outputs