This commit is contained in:
2021-10-28 18:27:55 +00:00
parent ae4f09cc61
commit d446fafa58
2 changed files with 6 additions and 4 deletions

View File

@@ -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...");