Commit 744fa89
committed
Only cleanups PRs after reconciliation
I experienced some issues where the watcher was getting stuck when there
is a race between the deletion of the PR and the reconciliation.
The high load would make it slow to know which PR to get deleted, and
the reconciliation would be stuck trying to reconcile on a deleted PR.
Stress tested this over 150 concurrent PR of 3 PipelineRuns with a
concurrency of 1 and a max-keep-runs of 1 for each pipelinerun and the Q
processed properly until the end all PipelineRuns without getting stuck
(like it was before the change).1 parent f08a73c commit 744fa89
2 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 159 | | |
164 | 160 | | |
165 | 161 | | |
| |||
185 | 181 | | |
186 | 182 | | |
187 | 183 | | |
188 | | - | |
| 184 | + | |
189 | 185 | | |
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
193 | 189 | | |
194 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| |||
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | | - | |
| 278 | + | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
0 commit comments