Skip to content

Commit 3578505

Browse files
committed
Fix RESOURCE_LIMITS_EXCEEDED GraphQL errors by reducing number of repos queried at once.
1 parent f0675b8 commit 3578505

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

_visualize/queries/org-Repos-Info.gql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ query ($orgName: String!, $numRepos: Int!, $pgCursor: String) {
7070
}
7171
}
7272
}
73-
# {"orgName": "LLNL", "numRepos": 50, "pgCursor": null}
73+
# {"orgName": "LLNL", "numRepos": 25, "pgCursor": null}

_visualize/scripts/get_repos_info.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from scraper.github import queryManager as qm
22
from os import environ as env
3-
import time # FIXME temporary fix attempt
43

54
ghDataDir = env.get("GITHUB_DATA", "../github-data")
65
datfilepath = "%s/intReposInfo.json" % ghDataDir
@@ -25,10 +24,9 @@
2524
print("\n'%s'" % (org))
2625

2726
try:
28-
time.sleep(1.2) # FIXME temporary fix attempt
2927
outObj = queryMan.queryGitHubFromFile(
3028
queryPath,
31-
{"orgName": org, "numRepos": 50, "pgCursor": None},
29+
{"orgName": org, "numRepos": 25, "pgCursor": None},
3230
paginate=True,
3331
cursorVar="pgCursor",
3432
keysToList=["data", "organization", "repositories", "nodes"],

0 commit comments

Comments
 (0)