Commit 3956817
fix: Disable semantic_check for job table subtraction in refresh()
The `-` operator calls `.restrict(Not(x))` without passing `semantic_check=False`.
When `keep_completed=True`, the subtraction `- self._target` fails because:
- Job table's PK has lineage `~~table.attr` (defined in job table)
- Target table's PK has lineage `#parent.attr` (from foreign key)
Replace `-` operator with explicit `.restrict(Not(...), semantic_check=False)`.
Also move `Not` import to top-level (was local import).
Fixes #1379
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 39f4aa7 commit 3956817
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
| |||
395 | 393 | | |
396 | 394 | | |
397 | 395 | | |
398 | | - | |
399 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
0 commit comments