This commit is contained in:
2022-09-10 22:01:48 +00:00
parent 56af1db7e7
commit 628364bcaa
8 changed files with 40 additions and 2 deletions

View File

@@ -186,6 +186,14 @@ namespace AyaNova.Biz
return;
}
//Do not process if there is no db, everything relies on it below here
if (!ServerGlobalOpsSettingsCache.DBAVAILABLE)
{
//This will set dbavailable flag if it becomes available
DbUtil.CheckDatabaseServerAvailable();
return;
}
ActivelyProcessing = true;
log.LogTrace("Processing internal jobs");
try
@@ -307,6 +315,7 @@ namespace AyaNova.Biz
{
var msg = "Server::ProcessJobsAsync unexpected error during processing";
log.LogError(ex, msg);
DbUtil.HandleIfDatabaseUnavailableTypeException(ex);
await NotifyEventHelper.AddOpsProblemEvent(msg, ex);
}
finally