Repository navigation
refactor(pipeline): key the graph by node hash (ITL-1559, step 3) #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7091585
a629f2b
4b21055
5da977a
f393077
bd7ac08
12c6d38
3bb81bf
a3e9a92
d7512fa
c49e36e
0d2bb9a
3e4f03e
060f54a
6c4accb
824f370
31136af
86a8a43
54692cd
58b3c87
1318293
558d3b5
560edb8
d5c6832
250a8db
0824721
4940a40
8281c0f
c86e01c
8424dd8
bf7f845
2bc822f
99cedd1
f42b250
072c4df
5defc43
959615f
d4235ca
29585ef
3a24f8a
162c732
9758f86
5b0fbde
e06ae8f
7e393d0
a0f8d39
0ea83c9
da7ab60
e10d953
61f12ec
1bef071
c3ac671
a609300
677e520
bcd0286
cd0fcf5
7dc6e94
a55d5ff
afd1c7a
ebeafc5
53068cc
fda26ee
3da399f
af6ab13
12d110b
966a917
79bc266
e10a8fd
90ffdbe
8db0558
0648008
b64d912
2988f84
b3b7460
ee18500
24a50c9
5068274
8faacf2
19334f6
0f3b223
7b0a07b
0c7db35
6ca3ce4
65efc09
c6829ba
ba88049
f089533
2c22269
fdf1385
5d12735
e08a0a5
0123358
6dfc001
958ae0f
24c452d
76aca37
e8cc5fd
39d4b2b
6a23656
45455e3
12ad914
59c3ba8
cf6d413
7574377
ce311be
6ab4561
7ded969
7f835f7
4ba8341
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,11 +151,11 @@ derived source still uses the node's live schema and keys. Restriction checks | |
| stop at the wrapper, and source object registration uses the wrapper itself | ||
| and its content hash. | ||
|
|
||
| Capturing into a loaded job or recompiling it can lose its restored graph | ||
| (ITL-1560). Recompilation preserves the loaded job's public `sources` mapping. | ||
| A loaded graph refuses new captures. Rebuild the graph from its original code | ||
| to add steps. Recompiling a loaded job can lose its restored graph (ITL-1560). | ||
|
|
||
| The same rule applies to wrappers. Each of these pairs raises | ||
| `InconsistentSourceError` when the objects share one content hash. | ||
| A slot name identifies one leaf object. A job binds a source object to one slot. | ||
| The table gives the remedy when capture or binding raises `InconsistentSourceError`. | ||
|
|
||
| | Sources used together | How to share the source | | ||
| | --- | --- | | ||
|
|
@@ -164,6 +164,13 @@ The same rule applies to wrappers. Each of these pairs raises | |
| | Two calls to `node.as_source()` on one node | Call `as_source()` once and reuse the result. | | ||
| | Two `DerivedSource(tags_as_data=...)` objects with the same hash | Build one derived source and reuse it. | | ||
| | A source or its cache paired with a `SourceProxy` restored for it | Choose one source object and reuse it. | | ||
| | One source object on two slots of a job, including in a saved job | Bind it to one slot and branch from that slot. | | ||
| | Two streams or declarations with different leaf objects sharing a slot name | Reuse the original object, or declare one under another name with `SourceNode.from_stream(stream, name=...)`. | | ||
| | An explicit slot and a different root source taking one name | Declare the two leaves under distinct names. | | ||
| | An explicit slot and a direct capture of its exact source | Use one capture form and branch from it until ITL-1553 defines source and stream equivalence. | | ||
| | Two bound slots sharing an execution identity | Bind distinct sources, or read through one slot and branch from it. | | ||
| | A prebuilt stream with the same execution identity as a step in the graph | Reuse the step’s output inside the graph. | | ||
| | A node, slot, or stream recorded by another graph, including through an outside-built projection | Pass the source itself, or use `node.as_source()` to read another job's stored results. | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give schema-only slots a recovery path. If a reader captures
|
||
|
|
||
| ```python | ||
| from orcapod import Pipeline, function_pod | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain the migration before users try to load a saved job with shared slots.
If two saved slots have identical reconstructible source configs,
PipelineJob.load()reconstructs one object and then rejects the shared binding. The table tells users to bind one slot, but no loaded job is returned on which to do that. State that load fails and explain that users with the original definition must rebuild the job with one slot and branch from it.