This commit is contained in:
2021-12-24 22:57:45 +00:00
parent e703b440b2
commit 71fa9e5ef5
47 changed files with 145 additions and 109 deletions

View File

@@ -182,7 +182,7 @@ namespace AyaNova.Biz
if (ActivelyProcessing)
{
//System.Diagnostics.Debug.WriteLine("ProcessJobs called but actively processing other jobs so returning");
log.LogTrace("ProcessJobs called but actively processing other jobs so returning");
log.LogDebug("ProcessJobs called but actively processing other jobs so returning");
return;
}
if (!KeepOnWorking()) return;
@@ -190,7 +190,7 @@ namespace AyaNova.Biz
log.LogDebug("Processing internal jobs");
try
{
log.LogTrace("Processing level 1 internal jobs");
log.LogDebug("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.LogTrace("Processing level 2 internal jobs");
log.LogDebug("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.LogTrace("Processing exclusive dynamic jobs");
log.LogDebug("Processing exclusive dynamic jobs");
//BIZOBJECT DYNAMIC JOBS
//get a list of exclusive jobs that are due to happen
@@ -264,14 +264,14 @@ namespace AyaNova.Biz
//### API Open only jobs
if (!serverState.IsOpen)
{
log.LogTrace("Server state is NOT open, skipping processing non-exclusive dynamic jobs");
log.LogDebug("Server state is NOT open, skipping processing non-exclusive dynamic jobs");
return;
}
///////////////////////////////////////
//NON-EXCLUSIVE JOBS
//
log.LogTrace("Processing non-exclusive dynamic jobs");
log.LogDebug("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();