Skip to content

Commit

Permalink
Further reduce elasped/delay time
Browse files Browse the repository at this point in the history
Signed-off-by: Lan Xia <Lan_Xia@ca.ibm.com>
  • Loading branch information
llxia committed Jul 25, 2024
1 parent 996bff1 commit bb0b4d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions TestResultSummaryService/EventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class EventHandler {
});
}
logger.debug(
'EventHandler: processBuild() is waiting for 2 secs before processing the next build'
'EventHandler: processBuild() is waiting for 1 secs before processing the next build'
);
await Promise.delay(2 * 1000);
await Promise.delay(1 * 1000);
}
} catch (e) {
logger.error('Exception in database query: ', e);
Expand Down Expand Up @@ -87,7 +87,7 @@ class EventHandler {
...task,
});
}
const elapsedTime = 15 * 60;
const elapsedTime = 1 * 60;
logger.verbose(
`EventHandler: monitorBuild() is waiting for ${elapsedTime} secs`
);
Expand Down
2 changes: 1 addition & 1 deletion TestResultSummaryService/JenkinsInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class JenkinsInfo {
logger.debug(
'JenkinsInfo: getBuildOutput() is waiting for 5 secs after getSize()'
);
await Promise.delay(5 * 1000);
await Promise.delay(1 * 1000);

// Due to 1G string limit and possible OOM in CI server and/or TRSS, only query the output < 50M
// Regular output should be 2~3M. In rare cases, we get very large output
Expand Down

0 comments on commit bb0b4d6

Please sign in to comment.