This commit is contained in:
2021-12-28 00:44:27 +00:00
parent 09538483d3
commit 075747b5b9
44 changed files with 197 additions and 693 deletions

View File

@@ -182,15 +182,15 @@ namespace AyaNova.Biz
if (ActivelyProcessing)
{
//System.Diagnostics.Debug.WriteLine("ProcessJobs called but actively processing other jobs so returning");
log.LogDebug("ProcessJobs called but actively processing other jobs so returning");
log.LogTrace("ProcessJobs called but actively processing other jobs so returning");
return;
}
if (!KeepOnWorking()) return;
ActivelyProcessing = true;
log.LogDebug("Processing internal jobs");
log.LogTrace("Processing internal jobs");
try
{
log.LogDebug("Processing level 1 internal jobs");
log.LogTrace("Processing level 1 internal jobs");
//### Critical internal jobs, these run even if there is a license related serverlock
//LICENSE FETCH
await CoreJobLicense.DoWorkAsync();
@@ -202,7 +202,7 @@ namespace AyaNova.Biz
ApiServerState serverState = ServiceProviderProvider.ServerState;
if (!KeepOnWorking()) return;
log.LogDebug("Processing level 2 internal jobs");
log.LogTrace("Processing level 2 internal jobs");
// #if (DEBUG)
// log.LogInformation("Processing semi-critical internal jobs (backup, pm, notification etc)");
@@ -239,7 +239,7 @@ namespace AyaNova.Biz
if (!KeepOnWorking()) return;
log.LogDebug("Processing exclusive dynamic jobs");
log.LogTrace("Processing exclusive dynamic jobs");
//BIZOBJECT DYNAMIC JOBS
//get a list of exclusive jobs that are due to happen
@@ -271,7 +271,7 @@ namespace AyaNova.Biz
///////////////////////////////////////
//NON-EXCLUSIVE JOBS
//
log.LogDebug("Processing non-exclusive dynamic jobs");
log.LogTrace("Processing non-exclusive dynamic jobs");
if (!KeepOnWorking()) return;
//These fire and forget but use a technique to bubble up exceptions anyway
List<OpsJob> sharedJobs = await GetReadyJobsNotExlusiveOnlyAsync();