Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glob/manager_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ async def reload(self, cache_mode, dont_wait=True):
dont_wait = True

# reload 'cnr_map' and 'repo_cnr_map'
cnrs = await cnr_utils.get_cnr_data(cache_mode=cache_mode=='cache', dont_wait=dont_wait)
cnrs = await cnr_utils.get_cnr_data(cache_mode=True, dont_wait=dont_wait)

for x in cnrs:
self.cnr_map[x['id']] = x
Expand Down
7 changes: 4 additions & 3 deletions glob/manager_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1754,9 +1754,10 @@ async def get_cache(filename):
if core.get_config()['network_mode'] == 'private':
logging.info("[ComfyUI-Manager] The private comfyregistry is not yet supported in `network_mode=private`.")
else:
# load at least once
await core.unified_manager.reload('remote', dont_wait=False)
await core.unified_manager.get_custom_nodes(channel_url, 'remote')
# use configured db_mode for startup data loading
db_mode = core.get_config()['db_mode']
await core.unified_manager.reload(db_mode, dont_wait=False)
await core.unified_manager.get_custom_nodes(channel_url, db_mode)

logging.info("[ComfyUI-Manager] All startup tasks have been completed.")

Expand Down