Commit b6e42bc
authored
ai/live: Store and forward parameter updates. (#3682)
This allows us to correctly handle cases where:
* We haven't selected an orchestrator yet but the client sent a
control API update.
* We've swapped orchestrators.
* We're mid-swap without an orchestrator.
In all these cases, the newly selected orchestrator will receive
the most recent parameter update as soon as it's selected.
Also:
* Add a 1 MB limit for reading parameters.
* Unblock processStream if selecting the first orchestrator fails.1 parent 7ce6ca5 commit b6e42bc
File tree
3 files changed
+73
-14
lines changed- core
- server
3 files changed
+73
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
455 | 473 | | |
456 | 474 | | |
457 | 475 | | |
| |||
472 | 490 | | |
473 | 491 | | |
474 | 492 | | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
479 | 497 | | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
485 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
486 | 505 | | |
487 | 506 | | |
488 | 507 | | |
489 | 508 | | |
490 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
491 | 527 | | |
492 | 528 | | |
493 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
638 | 640 | | |
| |||
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
724 | 730 | | |
725 | 731 | | |
726 | 732 | | |
| |||
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
823 | | - | |
| 829 | + | |
| 830 | + | |
824 | 831 | | |
| 832 | + | |
825 | 833 | | |
826 | 834 | | |
827 | 835 | | |
828 | 836 | | |
829 | 837 | | |
830 | | - | |
831 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
832 | 841 | | |
833 | 842 | | |
834 | 843 | | |
835 | 844 | | |
836 | 845 | | |
837 | | - | |
838 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
839 | 859 | | |
840 | 860 | | |
841 | 861 | | |
| |||
1069 | 1089 | | |
1070 | 1090 | | |
1071 | 1091 | | |
| 1092 | + | |
| 1093 | + | |
1072 | 1094 | | |
1073 | 1095 | | |
1074 | 1096 | | |
| |||
0 commit comments