mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-17 00:43:48 +08:00
Fix the issue where subgraph does not work under --cache-none mode (#10329)
This commit is contained in:
parent
1c10b33f9b
commit
7a79d9add3
@ -418,8 +418,11 @@ class DependencyAwareCache(BasicCache):
|
|||||||
The subcache object for the node.
|
The subcache object for the node.
|
||||||
"""
|
"""
|
||||||
subcache = await super()._ensure_subcache(node_id, children_ids)
|
subcache = await super()._ensure_subcache(node_id, children_ids)
|
||||||
|
await self.cache_key_set.add_keys(children_ids)
|
||||||
for child_id in children_ids:
|
for child_id in children_ids:
|
||||||
self.descendants[node_id].add(child_id)
|
self.descendants[node_id].add(child_id)
|
||||||
|
if child_id not in self.ancestors:
|
||||||
|
self.ancestors[child_id] = set()
|
||||||
self.ancestors[child_id].add(node_id)
|
self.ancestors[child_id].add(node_id)
|
||||||
return subcache
|
return subcache
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user