This commit is contained in:
@@ -417,7 +417,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Default timeout for each operation of report generation
|
||||
var WaitTimeout = new WaitForFunctionOptions() { Timeout = ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT };
|
||||
// var WaitTimeout = new WaitForFunctionOptions() { Timeout = ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT*10 };
|
||||
|
||||
//includeWoItemDescendants?
|
||||
reportRequest.IncludeWoItemDescendants = report.IncludeWoItemDescendants;
|
||||
@@ -493,6 +493,8 @@ namespace AyaNova.Biz
|
||||
//track this process so it can be cancelled if it times out
|
||||
ReportRenderManager.AddProcess(browser.Process.Id);
|
||||
|
||||
page.DefaultTimeout = 0;//infinite timeout as we are controlling how long the process can live for with the reportprocessmanager
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -611,7 +613,7 @@ namespace AyaNova.Biz
|
||||
log.LogDebug($"Calling ayPreRender...");
|
||||
|
||||
//PRE_RENDER WITH TIMEOUT
|
||||
await page.WaitForExpressionAsync($"ayPreRender({ReportDataObject})", WaitTimeout);
|
||||
await page.WaitForExpressionAsync($"ayPreRender({ReportDataObject})");
|
||||
|
||||
//compile the template
|
||||
log.LogDebug($"Calling Handlebars.compile...");
|
||||
|
||||
Reference in New Issue
Block a user