Commit 01ed7cc
improvement(logs): run the duplicate-execution probe and snapshot upsert concurrently
startWorkflowExecution's existing-log probe and
createSnapshotWithDeduplication have no data dependency; running them in
parallel cuts a serial round trip from every execution start. The
duplicate-executionId path still returns the prior log and snapshot — the
concurrent upsert is an idempotent no-op on an unchanged state hash, and a
changed-hash orphan is reclaimed by cleanupOrphanedSnapshots.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 04e5bec commit 01ed7cc
1 file changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
660 | 669 | | |
661 | 670 | | |
662 | 671 | | |
| |||
691 | 700 | | |
692 | 701 | | |
693 | 702 | | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | 703 | | |
700 | 704 | | |
701 | 705 | | |
| |||
0 commit comments