Skip to content

vilanele/ComfyUI-AsyncPause

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ComfyUI-AsyncPause

A node pack for pausing execution asynchronously and notifying the user

Nodes

All the nodes are installed under the utils/ category.

Pause

The Pause node allows you to pause execution and resume it when desired by clicking the continue button.

The node runs asynchronously, so when a Pause node is reached and begins waiting for user interaction, other nodes that don’t depend on it can continue executing.

Pause node image

The default version includes only a continue button. It is possible to make the node blink and to customize the blinking interval and color through the settings. In addition, the node can be enhanced with the following options (all available in the settings):

  • cancel button: add a button to the node to interrupt the current run.

  • cancel and run button: add a button to the node to interrupt the current run and queue a new one.

  • force_pause toggle: when enabled, forces the node to execute even if the input has not changed.

Example workflows:


Notify Audio

Triggers an audio notification when executed. Available as both an output node and a passthrough node.


Output node

Passthrough node

A preset collection of 12 notification sounds is included.

To add a custom sound:

  1. Copy your sound file into the web/audio folder.
  2. Update the sounds object in web/js/sounds.js with the appropriate values.
  3. Restart ComfyUI to apply the changes. Your custom sound will now appear in the dropdown list of available sounds.

Example workflows:


Notify Toast

Triggers a toast notification when executed. Available as both an output node and a passthrough node.

Notify Toast Output node
Output node
Notify Toast Passthrough node
Passthrough node

Example workflows:


An example of a workflow combining the Pause node with notification nodes: notify_and_pause.json

Subgraphs

A common pattern is to create a subgraph containing a notification node before and/or after a Pause node to get notified when reaching and/or leaving a checkpoint.

Example workflow using subgraphs: pause_subgraphs.json

Related Custom Nodes

  • ComfyUI-pause includes a pause node, but it is not asynchronous and does not work properly with subgraphs.

To-Do

  • Make the Pause node blink while waiting for user interaction. (done)
  • Add a cancel and run button. (done)
  • Support multiple dynamically added input and output connections.

Support

If you like this node pack, consider supporting my work with a coffee or a Bitcoin tip:

Buy Me a Coffee at ko-fi.com

bc1qzje0h4k0u7jq80tm6xta2gtu80uhhuenmm6z5s

About

A ComfyUI node pack for pausing execution asynchronously and notifying the user

Resources

License

Stars

Watchers

Forks

Packages

No packages published