Extending KPI script timeout to 30 seconds (#38921)
This commit is contained in:
+4
-3
@@ -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 = {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user