Commit f585d9e
docs(workflow-builder): record D-17 — cancel-on-new-Try never fires
9.7 fails, and the diagnosis is precise. Against a purpose-built 15s dynamic
node, a second Try leaves the first running: two concurrent 'running' runs,
neither cancelled, both completing.
The backend is correct and complete. startRun calls
cancelInFlightTriesForLineage before starting, and G-021 deliberately narrows it
so only runs stamped RunTrigger='try' are cancelled — production runs must
complete regardless, or feeding 240 documents through would have document #2
cancel document #1.
The frontend never stamps one. The drawer's Try and the Run tab both call
useStartWorkflowRun -> POST /workflows/:id/runs, and that endpoint hard-codes
the new run as 'api'. So the 'try' category has no producer at all, and the
cancel set is always empty. G-021's narrowing is inert because the thing it
protects is never created.
Every editor Try therefore behaves as a production run: two Trys race, canvas
badges follow whichever statuses land last, and on an OCR or LLM graph the
abandoned run keeps spending.
Two fix shapes, both with tradeoffs (a public-API 'trigger' field that callers
could assert, vs a dedicated /tries route), so this needs Alex — and should
likely be decided together with D-16, the other Try-path gap.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 121c564 commit f585d9e
1 file changed
Lines changed: 51 additions & 0 deletions
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
0 commit comments