-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add dynamic token load balancer for API rate limit management #1008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
09cd8ec
chore(codex): bootstrap PR for issue #1001
github-actions[bot] c68db63
Fix keepalive source section extraction
b2213d7
chore: sync template scripts
github-actions[bot] d210ead
Fix source extraction for indented headings
423126f
chore: sync template scripts
github-actions[bot] b6f13db
Fix keepalive reconciliation for numbered tasks
4b48ff6
Improve issue-link task reconciliation
6cd85b7
chore: sync template scripts
github-actions[bot] 5554ae6
Fix actionlint head_ref usage
stranske 3aed141
Defer keepalive summary on rate limits
stranske 1bbaea7
feat: Add dynamic token load balancer for API rate limit management
stranske 778b0cb
fix: Add SERVICE_BOT_PAT to dispatch fallback chain and update sync m…
stranske 80f372d
fix: Address bot review feedback
stranske db3a9c8
fix: Add isInitialized method for registry state check
stranske 9f9b96d
fix: Set flake8 max line length to 100
stranske f499052
fix: Resolve workflow line length issues from main merge
stranske 472fed1
fix: Remove merge conflict markers and duplicate code
stranske fb804c8
fix: Restore missing confidence and reason variable declarations
stranske 5593dee
chore(autofix): formatting/lint
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [flake8] | ||
| max-line-length = 100 | ||
| extend-ignore = E501,W503 | ||
| exclude = | ||
| .git, | ||
| __pycache__, | ||
| .venv, | ||
| venv, | ||
| archive, | ||
| .extraction, | ||
| build, | ||
| dist, | ||
| Manager-Database, | ||
| Trend_Model_Project |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because
checkRateLimitStatusunconditionally callstokenLoadBalancer.shouldDefer(minRequired)when the module is present, the keepalive loop will defer even if the primary token has quota whenever the registry is empty (the new module is required butinitializeTokenRegistryis never called in this script).shouldDeferreturnstruewhentokenRegistry.tokensis empty (token_load_balancer.jslines 631–637), so this path will always hit the earlyaction: 'defer'return on every run unlessforceRetryis set. This effectively stalls the loop in the default configuration.Useful? React with 👍 / 👎.