Commit ea6de93
committed
feat(webapp,run-engine): take up the store and sweeper connection contract
The store now receives a pre-built client instead of building its own, so
cluster mode reaches the hot path and not only the sweep. The webapp owns both
sockets and closes both, with the hot-path client last so an append in flight
can still land.
The sweep receives the dedicated client, the confirm window that was parsed and
unused, and the deadline and abort signal it now accepts. So the pass budget is
enforced inside a pass rather than only bounding the lock, and a truncated pass
reports itself as partial.
The engine also arms an abort a minute past the budget. The deadline is the
sweep's own stopping rule, checked at batch boundaries; this is the backstop for
a pass that has stopped reaching one, so the signal is not decorative.1 parent 6cc24de commit ea6de93
3 files changed
Lines changed: 16 additions & 15 deletions
File tree
- apps/webapp/app/v3
- internal-packages/run-engine/src/engine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
| 153 | + | |
150 | 154 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 26 | + | |
| 27 | + | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
| 33 | + | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
43 | 38 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 39 | + | |
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2961 | 2961 | | |
2962 | 2962 | | |
2963 | 2963 | | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
2964 | 2967 | | |
2965 | 2968 | | |
2966 | 2969 | | |
| |||
2974 | 2977 | | |
2975 | 2978 | | |
2976 | 2979 | | |
| 2980 | + | |
2977 | 2981 | | |
2978 | 2982 | | |
2979 | 2983 | | |
| |||
0 commit comments