Repository navigation
Reduce GitHub background polling and batch repository queries - #3447
Merged
Merged
Conversation
ymichael
deleted the
bb/fix-issue-3406-github-polling-thr_sz6uesqjge
branch
September 10, 2026 23:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The GitHub plugin launched four list processes for every tracked repository and repeated successful sweeps after a five-minute wait, even when the catalog was unchanged. A deterministic 34-repository reproduction launched 136 list processes per sweep. This proves polling amplification; it does not establish quota exhaustion or interactive failures.
What changed
Batch each repository's four bounded issue/PR lists into one
gh api graphqlcall, and wait 15 minutes after successful sweeps. Preserve creation order, result limits, closed/merged PRs, gh author serialization, disabled-issues handling, cached rows on failed responses, immediate manual refresh, and the existing five-minute retry cap. Validate GraphQL responses before replacing repository rows.The interval remains internal policy with no new configuration or CLI/SDK member. README and marketplace overview document the behavior. HOST_DAEMON_PROTOCOL_VERSION is unchanged because no server/daemon wire contract changes.
For 34 repositories, fetch process launches drop from 136 to 34 per sweep. Combined with the longer wait, the negligible-duration steady-state projection drops from 1,632 to 136 fetch processes/hour, excluding startup, manual refresh, retries and authentication. HTTP request counts are source-derived, not live-measured; GraphQL point savings are unmeasured.
How you verified
Fixes #3406