Extending KPI script timeout to 30 seconds (#38921)

This commit is contained in:
Luke Heath
2026-01-28 13:48:50 -06:00
committed by GitHub
parent 5659251b70
commit dc4f3fb1c2
+4 -3
View File
@@ -75,7 +75,7 @@ module.exports = {
allIssuesWithBugLabel = allIssuesWithBugLabel.concat(issuesWithBugLabel);
// If we received less results than we requested, we've reached the last page of the results.
return issuesWithBugLabel.length !== NUMBER_OF_RESULTS_REQUESTED;
}, 10000);
}, 30000);
// iterate through the allIssuesWithBugLabel array, adding the number
for (let issue of allIssuesWithBugLabel) {
@@ -133,7 +133,7 @@ module.exports = {
allIssuesWithBugLabel = allIssuesWithBugLabel.concat(issuesWithBugLabel);
// Stop when we've received results from the third page.
return pageNumberForPaginatedResults === 3;
}, 10000);
}, 30000);
// iterate through the allIssuesWithBugLabel array, adding the number
for (let issue of allIssuesWithBugLabel) {
@@ -240,7 +240,7 @@ module.exports = {
allPublicOpenPrs = allPublicOpenPrs.concat(pullRequests);
// If we received less results than we requested, we've reached the last page of the results.
return pullRequests.length !== NUMBER_OF_RESULTS_REQUESTED;
}, 10000);
}, 30000);
for (let pullRequest of allPublicOpenPrs) {
// Create a date object from the PR's created_at timestamp.
@@ -378,3 +378,4 @@ module.exports = {
};