This commit is contained in:
@@ -107,10 +107,10 @@ namespace AyaNova.Util
|
||||
}
|
||||
|
||||
|
||||
internal static void AddJob(Guid jobId, DateTime expires, ILogger log)
|
||||
internal static void AddJob(Guid jobId, ILogger log)
|
||||
{
|
||||
log.LogDebug($"AddJob - {jobId} to the collection");
|
||||
_baginstances.Add(new ReportRenderInstanceInfo(jobId, expires));
|
||||
_baginstances.Add(new ReportRenderInstanceInfo(jobId, DateTime.UtcNow.AddMinutes(ServerBootConfig.AYANOVA_REPORT_RENDERING_TIMEOUT)));
|
||||
|
||||
log.LogInformation($"AddJob - there are currently {_baginstances.Count} instances in the collection");
|
||||
}
|
||||
@@ -144,6 +144,8 @@ namespace AyaNova.Util
|
||||
|
||||
internal static bool KeepGoing(Guid jobId)
|
||||
{
|
||||
//if job id is empty it means it was called from outside of a job (report designer get data for example)
|
||||
if(jobId==Guid.Empty) return true;
|
||||
foreach (var i in _baginstances)
|
||||
{
|
||||
if (i.JobId == jobId)
|
||||
|
||||
Reference in New Issue
Block a user