Skip to content

Commit

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

Signed-off-by: Rupal Mahajan <[email protected]>

* Change timeout

Signed-off-by: Rupal Mahajan <[email protected]>

Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq authored Oct 5, 2022
1 parent 3483baf commit e7e3cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class ReportsDashboardsPlugin

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 setup(core: CoreSetup) {
Expand Down
2 changes: 1 addition & 1 deletion server/routes/utils/visual_report/visualReportHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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 e7e3cc4

Please sign in to comment.