Repository navigation
Commit 81e99bb
committed
perf(server): raise the upstream status fetch interval to 60s
`automaticGitFetchInterval` only governs the timer-driven remote refresh in
VcsStatusBroadcaster. On-demand status reads -- thread mounts via `getStatus`,
explicit refreshes via `refreshStatus` -- reach `statusDetailsRemote` without
options, so `refreshUpstream` defaults to true and they fetch through
`statusRemoteRefreshCache`. That cache's TTL, not the setting, is what bounds
fetch volume, and setting the interval to 0 does not touch it.
The key is (gitCommonDir, remoteName), so every repository carries its own
budget. At 15s a handful of open repositories was enough to trip Azure DevOps'
per-repository rate limit while actively working -- twice the rate of the 30s
background poll it was meant to replace. Raise it to 60s.
The failure cooldown was documented as needing to exceed the success interval,
so raising one in isolation would have inverted it and retried failing remotes
more often than healthy ones. Derive it as 2x the interval instead of
hardcoding, so that invariant cannot silently break again. The worktree backoff
test hardcoded the old 30s/60s boundaries; retarget it to 120s/240s.1 parent 1c26e96 commit 81e99bb
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
609 | 612 | | |
610 | 613 | | |
611 | 614 | | |
612 | 615 | | |
613 | | - | |
| 616 | + | |
614 | 617 | | |
615 | 618 | | |
616 | 619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
63 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
0 commit comments