Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selective Loading of Custom Nodes Using INCLUDED_CUSTOM_NODES Environment Variable #6717

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

younes127
Copy link

In production environments, multiple instances of ComfyUI may share a single volume. In such cases, some instances might only need specific custom nodes to function, while others might require a different set of nodes.

Currently, all custom nodes are loaded indiscriminately, which can lead to increased startup times and unnecessary resource usage.

Feature Overview
This PR introduces the INCLUDED_CUSTOM_NODES environment variable, allowing users to specify which custom nodes should be loaded at startup. This significantly reduces loading times and improves performance in environments where only a subset of nodes is required.

Usage Example
export INCLUDED_CUSTOM_NODES="node1, node2, node3"

Benefits
✅ Faster startup times by skipping unnecessary nodes
✅ Optimized resource usage for multi-instance environments
✅ More control over which custom nodes are loaded per instance

Looking forward to your feedback!
Thanks and best regards. 😊🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant