restore_graph
restore_graph
Section titled “restore_graph”Kind: function
Source: src/graphrefly/_facade.py:1417
Signature
Section titled “Signature”restore_graph(checkpoint: GraphCheckpoint, *, registry: Mapping[str, RecipeFactory], report: Callable[[HostReport], object] | None = None, clock: Clock | None = None, require_recipe: bool = False)Description
Section titled “Description”Build a new graph from checkpoint (R-checkpoint); no callback runs.
registry maps each recipe’s ref to a factory called as
factory(config, RecipeContext(graph, name, make)), returning the node callback or
a (callback, setup) pair; make builds another registered recipe. A node
built with derived, effect or producer and a recipe gets its value-level
callback from the factory, with no setup, and the same sugar again. State
nodes need no recipe. A checkpoint that holds a local-only node, names a recipe the
registry lacks or is in another format is refused, naming the node and, for a missing
recipe, its reference. A checkpoint does not hold the recipe requirement: pass
require_recipe to ask for it again, and clock for what waits.