This commit is contained in:
2022-03-08 00:36:39 +00:00
parent ca9ee50332
commit 553db1e8e4
5 changed files with 259 additions and 272 deletions

View File

@@ -204,19 +204,14 @@ namespace AyaNova.Biz
if (!KeepOnWorking()) return;
log.LogTrace("Processing level 2 internal jobs");
// #if (DEBUG)
// log.LogInformation("Processing semi-critical internal jobs (backup, pm, notification etc)");
// #endif
//BACKUP
await CoreJobBackup.DoWorkAsync();
if (!KeepOnWorking()) return;
//NOTIFICATIONS
TaskUtil.Forget(Task.Run(() => CoreJobNotify.DoWorkAsync()));//must fire and forget as it will call a report render job. In fact probably all of these can be fire and forget
// await CoreJobNotify.DoWorkAsync();
await CoreJobNotify.DoWorkAsync();
if (!KeepOnWorking()) return;
await CoreNotificationSweeper.DoWorkAsync();
if (!KeepOnWorking()) return;
@@ -241,6 +236,8 @@ namespace AyaNova.Biz
await CoreJobReportRenderEngineProcessCleanup.DoWork();
if (!KeepOnWorking()) return;
//CUSTOMER NOTIFICATIONS
TaskUtil.Forget(Task.Run(() => CoreJobCustomerNotify.DoWorkAsync()));//must fire and forget as it will call a report render job. In fact probably all of these can be fire and forget
log.LogTrace("Processing exclusive dynamic jobs");