Files
co5dt-ComfyUI-Persistent-Queue/__init__.py
T

18 lines
585 B
Python

import logging
# Expose empty node mappings to satisfy ComfyUI V1 loader
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
# Optional: serve web assets if present
WEB_DIRECTORY = "./web"
# Install persistent queue hooks as soon as this extension is imported.
try:
from .server.manager import PersistentQueueManager
_queue_manager = PersistentQueueManager()
_queue_manager.initialize()
except Exception as e:
logging.debug(f"ComfyUI-Persistent-Queue initialization failed: {e}")
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY']