Nodes/JNComfy/Sleep Output
ComfyUI Node

Sleep Output

The Sleep for when nothing comes after

By jn-jairo·Created 2 years ago·Updated 2 years ago· 5
Sleep Output
  • dependency
    seconds0
    every1
    count0

    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 every you 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:

    1. 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 flow wire through everything just to hold a timer.
    2. Forcing execution order. Because dependency is 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.
    3. A visible delay timer. If you're demonstrating or testing something time-based, the progress bar is a nice touch that the plain JN_Sleep gives 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 seconds cap 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.
    CategoryJN/Other

    Inputs (4)

    NameTypeDefaultDescription
    secondsINT00–3600
    everyINT11–18446744073709550000
    countINT00–18446744073709550000
    dependencyopt*

    Outputs (0)

    No outputs