Commit 3e830a1
authored
fix(git): freshen mirror in snapshot job, not per request (#366)
Snapshot and git request paths called maybeBackgroundFetch on every
request, which is time-based and un-deduplicated. A parallel snapshot
restore burst made every concurrent request enqueue its own fetch,
flooding the per-repo fetch queue with back-to-back fetches.
Move mirror freshening into the periodic snapshot job (fetch then
snapshot) and drop maybeBackgroundFetch from the request paths.1 parent 2c636d7 commit 3e830a1
2 files changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
381 | 380 | | |
382 | 381 | | |
383 | 382 | | |
| |||
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | 710 | | |
719 | 711 | | |
720 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
310 | | - | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
0 commit comments