A custom sampler node for ComfyUI that allows you to Pause generation mid-cycle and Resume it.
Useful for inspecting intermediate steps, managing GPU/CPU heat, or simply halting a long render without losing progress. This is particularly useful if you are on older hardware that causes gens to be longer than a minute.
This is a rebuild of the KSampler and Advanced KSampler and simply inserts a listener, signaler, and a trigger into the loop, effectively creating a "trap." There is a running loop that loops back around after each step is performed. all this does is tell the loop to wait while the state is "paused."
- 🛑 Live Pause/Resume: Hit "PAUSE" mid-generation to hold the current state. The process stays alive in RAM.
Changes made during a Pause do NOT affect the current run. If you pause and change the CFG slider, the current generation will finish using the original CFG value. The new settings will only apply to the next job you queue.
- Navigate to your ComfyUI
custom_nodesdirectory:cd ComfyUI/custom_nodes/ - Clone this repository:
git clone [https://github.com/YourUsername/ComfyUI-Pause.git](https://github.com/YourUsername/ComfyUI-Pause.git)
- Restart ComfyUI.
A drop-in replacement for the standard KSampler.
- How to use: Connect it exactly like a normal KSampler.
- Controls: Adds "PAUSE" and "RESUME" buttons directly on the node.
A drop-in replacement for KSampler (Advanced).
- Extra Features: Exposes
add_noise,start_at_step,end_at_step, andreturn_with_leftover_noisefor complex workflows.
MIT License.