Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
C
coderai
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexlab
  • coderai
  • Repository

Switch branch/tag
  • coderai
  • codai
  • api
  • runpod_client.py
Find file
BlameHistoryPermalink
  • Stefy Lanza (nextime / spora )'s avatar
    hold RunPod GraphQL to a 1,500/h budget, then route to REST v2 (v0.4.58) · 53e32f65
    Stefy Lanza (nextime / spora ) authored Oct 20, 2026
    RunPod's live GraphQL limits for our key are 180/min, 3,600/h and
    43,200/day. The day limit is the one that ran out, and the ban lasts until
    midnight UTC. Averaged over a day it allows 1,800/h, so the hourly cap is
    not the binding one.
    
    This process now counts its own GraphQL calls over a rolling hour. Past
    CODERAI_RUNPOD_GQL_HOURLY_BUDGET (default 1500; 0 = off), _gql_banned()
    reports true, so everything REST v2 can do goes to v2 before RunPod ever
    answers 429. The budget only reroutes. It never refuses a GraphQL call on
    its own, so spot rentals, which v2 cannot do, still work. The first time
    the budget is reached, and every 10 min while it stays reached, it says so.
    Co-Authored-By: 's avatarClaude Opus 5.5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01KnfkxBpcZ1v6ypRFFyhrVM
    53e32f65
runpod_client.py 52.5 KB
EditWeb IDE

Replace runpod_client.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.