Skip to content

vilanele/ComfyUI-AsyncPause

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 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

Options:

  • force_pause toggle — If enabled, forces execution of the node even if the inputs haven’t changed.

  • For convenience, it's possible to add a cancel button to the node to interrupt the current run (same as the cancel current run button in the top bar). This functionality can be enabled or disabled in the Settings (default: disabled).

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.
  • 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

Releases

No releases published

Packages

No packages published