Frontmatter
| id | 9083 |
| title | Feat: DevRank GitHub API Rate Limit Protection |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Feb 10, 2026, 2:54 PM |
| updatedAt | Feb 10, 2026, 2:58 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9083 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8930 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 10, 2026, 2:58 PM |
Feat: DevRank GitHub API Rate Limit Protection
tobiu added parent issue #8930 on Feb 10, 2026, 2:54 PM
tobiu assigned to @tobiu on Feb 10, 2026, 2:54 PM

tobiu
Feb 10, 2026, 2:57 PM
Input from Gemini 3 Pro:
✦ I have implemented the rate limit protection logic:
- DevRank.services.GitHub: Now parses
x-rate-limit-remaining,reset, andlimitheaders from every GraphQL and REST response.- DevRank.services.Updater: Checks the rate limit before processing each batch chunk. If remaining < 50, it stops processing, saves the checkpoint, and logs a warning with the reset time.
- DevRank.services.Spider: Similarly checks the rate limit during search paging and repository processing to prevent quota exhaustion during discovery runs.
This should prevent the "API rate limit already exceeded" errors by proactively shutting down the services when the limit is approached.
tobiu closed this issue on Feb 10, 2026, 2:58 PM
Implement rate limit tracking and graceful shutdown for the DevRank backend services (
Updater,Spider).Requirements:
DevRank.services.GitHubto extractx-rate-limit-remainingandx-rate-limit-resetheaders from every API response (GraphQL and REST).GitHubservice.UpdaterandSpiderto check the rate limit after processing batches/repositories.remaining< threshold (e.g., 50), stop processing.This will prevent "API rate limit exceeded" errors and ensure we don't lose data when hitting the wall.