Skip to content

symfonic.memory.backends.in_memory_owned_node_patch

in_memory_owned_node_patch

Exact-owner conditional patch over the in-process graph writer lock.

new_incarnation

new_incarnation(node: Any) -> None

Called on every insert/replacement, including reuse of the same model.

Source code in src/symfonic/memory/backends/in_memory_owned_node_patch.py
def new_incarnation(node: Any) -> None:
    """Called on every insert/replacement, including reuse of the same model."""
    node._graph_incarnation = str(uuid4())
    node._graph_revision = 0