This commit is contained in:
@@ -799,7 +799,7 @@ namespace AyaNova.Biz
|
||||
}
|
||||
catch (PuppeteerSharp.TargetClosedException)
|
||||
{
|
||||
log.LogDebug("Caught PuppeteerSharp.TargetClosedException throwing as ReportRendertimeOutException (timed out and closed from process sweeper)");
|
||||
log.LogDebug("Caught PuppeteerSharp.TargetClosedException - report was cancelled by user OR timed out");
|
||||
//we closed it because the timeout hit and the CoreJobReportRenderEngineProcessCleanup job cleaned it out
|
||||
//so return the error the client expects in this scenario
|
||||
await HandleTimeOut(job, log, reportRequest, userName);
|
||||
@@ -844,7 +844,7 @@ namespace AyaNova.Biz
|
||||
|
||||
static async Task HandleTimeOut(OpsJob job, ILogger log, DataListReportRequest reportRequest, string userName)
|
||||
{
|
||||
log.LogInformation($"Report render timeout, exceeded timeout setting of {ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT} minutes, report id: {reportRequest.ReportId}, record count:{reportRequest.SelectedRowIds.LongLength}, user:{userName}");
|
||||
log.LogDebug($"Report render cancelled by user OR exceeded timeout setting of {ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT} minutes, report id: {reportRequest.ReportId}, record count:{reportRequest.SelectedRowIds.LongLength}, user:{userName}");
|
||||
await JobsBiz.LogJobAsync(job.GId, $"rendererror:timeout,{ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT}");//parseable for print client
|
||||
await JobsBiz.UpdateJobStatusAsync(job.GId, JobStatus.Failed);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user