Skip to content

Commit b96d6b2

Browse files
committed
script: Attempt to fix 502 errors
This decreases the items requested by page from 100 to 50 - seems to do the trick locally. Signed-off-by: Aurélien Bombo <[email protected]>
1 parent dcc66e8 commit b96d6b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/fetch-ci-nightly-data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const main_branch_url = "https://api.github.com/repos/" +
3737
"kata-containers/kata-containers/branches/main";
3838

3939
// The number of jobs to fetch from the github API on each paged request.
40-
const jobs_per_request = 100;
40+
const jobs_per_request = 50;
4141

4242
// Count of the number of fetches.
4343
let fetch_count = 0;
@@ -87,7 +87,7 @@ function get_job_data(run) {
8787
});
8888

8989
if (!response.ok) {
90-
throw new Error(`Failed to fetch jobs: ${response.status}: ` +
90+
throw new Error(`Failed to fetch jobs from ${jobs_url}: ${response.status}: ` +
9191
`${response.statusText}`);
9292
}
9393
const json = await response.json();

0 commit comments

Comments
 (0)