Commit ff348c4
committed
fix(run-engine,redis-worker): drop a batch item result once its lease is lost
The heartbeat already learns when another consumer has taken the item over: the
in-flight member is gone, so the extend returns false. That signal was discarded,
leaving the original consumer free to finish and complete over the new owner's
in-flight record. It now stops and discards its result instead, so the consumer
that actually owns the item is the one that finishes it.
Also treat a discarded release pipeline as a failure rather than a success, since
a null result means none of the commands ran.1 parent a2f12f2 commit ff348c4
2 files changed
Lines changed: 39 additions & 11 deletions
File tree
- internal-packages/run-engine/src/batch-queue
- packages/redis-worker/src/fair-queue
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
771 | 776 | | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
777 | 790 | | |
778 | | - | |
779 | 791 | | |
780 | 792 | | |
781 | 793 | | |
782 | 794 | | |
783 | | - | |
| 795 | + | |
784 | 796 | | |
785 | 797 | | |
786 | 798 | | |
| |||
851 | 863 | | |
852 | 864 | | |
853 | 865 | | |
854 | | - | |
| 866 | + | |
855 | 867 | | |
856 | 868 | | |
857 | 869 | | |
| |||
871 | 883 | | |
872 | 884 | | |
873 | 885 | | |
874 | | - | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
875 | 897 | | |
876 | 898 | | |
877 | 899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
0 commit comments