Skip to content

Commit

Permalink
[1.3.2] Update default timeout (#496)
Browse files Browse the repository at this point in the history
* Update timeout

Signed-off-by: Rupal Mahajan <maharup@amazon.com>

* Change timeout

Signed-off-by: Rupal Mahajan <maharup@amazon.com>

Signed-off-by: Rupal Mahajan <maharup@amazon.com>
  • Loading branch information
rupal-bq authored Oct 5, 2022
1 parent 08f1a27 commit b9ee9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboards-reports/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ReportsDashboardsPlugin
this.initializerContext = context;
const timeoutError = new Error('Server busy');
timeoutError.statusCode = 503;
this.semaphore = withTimeout(new Semaphore(1), 180000, timeoutError);
this.semaphore = withTimeout(new Semaphore(1), 300000, timeoutError);
}

public async setup(core: CoreSetup) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const createVisualReport = async (
});

page.setDefaultNavigationTimeout(0);
page.setDefaultTimeout(100000); // use 100s timeout instead of default 30s
page.setDefaultTimeout(300000); // use 300s timeout instead of default 30s
// Set extra headers that are needed
if (!_.isEmpty(extraHeaders)) {
await page.setExtraHTTPHeaders(extraHeaders);
Expand Down

0 comments on commit b9ee9b7

Please sign in to comment.