Commit 818e1a8
committed
fix(rpc): delegate REM pipelines from generic Start/Stop/DeletePipeline to dedicated handlers
StartPipeline/StopPipeline/DeletePipeline did not handle REM pipeline
type correctly — REM was falling through to the default CustomPipeline
path in the listener's startPipeline(), so the rem process was never
actually started. WebUI always calls the generic StartPipeline RPC,
which caused REM pipelines created via WebUI to have empty Link and
Subscribe fields.
Add type checks in StartPipeline, StopPipeline, and DeletePipeline to
detect REM pipelines and delegate to StartRem, StopRem, DeleteRem
respectively.
Also fix two related issues:
- Remove stale core.Jobs.AddPipeline() call in StartRem that overwrote
runtime Link/Subscribe/Port data from SyncPipeline with the old DB
snapshot.
- Enhance handleStartRem idempotency check to detect dead REM pipelines
(crashed via runtimeErrorHandler) and recreate them instead of just
syncing stale state.1 parent 8b5aeae commit 818e1a8
3 files changed
Lines changed: 39 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
683 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
684 | 691 | | |
685 | 692 | | |
686 | 693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
172 | 191 | | |
173 | 192 | | |
174 | 193 | | |
| |||
214 | 233 | | |
215 | 234 | | |
216 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
217 | 243 | | |
218 | 244 | | |
219 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
0 commit comments