Commit 844cd36
refactor: Split Context.run_node to support internal orchestration
This PR extracts the core execution logic from the public `Context.run_node` method into a new internal method `_run_node_internal`. This is the first step in unifying static and dynamic node execution paths.
By splitting these methods, we maintain a clean public API while providing the orchestration engines (such as the workflow engine and dynamic scheduler) with the necessary hooks to drive and inspect node execution.
Co-authored-by: Shangjie Chen <deanchen@google.com>
PiperOrigin-RevId: 9382263211 parent ec4446f commit 844cd36
2 files changed
Lines changed: 92 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
459 | 496 | | |
460 | 497 | | |
461 | 498 | | |
| |||
538 | 575 | | |
539 | 576 | | |
540 | 577 | | |
541 | | - | |
| 578 | + | |
542 | 579 | | |
543 | 580 | | |
544 | 581 | | |
| |||
550 | 587 | | |
551 | 588 | | |
552 | 589 | | |
| 590 | + | |
553 | 591 | | |
554 | 592 | | |
555 | 593 | | |
| |||
568 | 606 | | |
569 | 607 | | |
570 | 608 | | |
571 | | - | |
| 609 | + | |
572 | 610 | | |
573 | 611 | | |
574 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
0 commit comments