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

@@ -31,16 +31,16 @@ namespace AyaNova.Biz
public static async Task DoWorkAsync()
{
log.LogDebug("Checking if PMGenerate should run");
log.LogTrace("Checking if PMGenerate should run");
if (IsRunning)
{
log.LogDebug("PMGenerate is running already exiting this cycle");
log.LogTrace("PMGenerate is running already exiting this cycle");
return;
}
//This will get triggered roughly every minute, but we don't want to deliver that frequently
if (DateTime.UtcNow - lastRun < RUN_EVERY_INTERVAL)
{
log.LogDebug($"PMGenerate ran less than {RUN_EVERY_INTERVAL} ago, exiting this cycle");
log.LogTrace($"PMGenerate ran less than {RUN_EVERY_INTERVAL} ago, exiting this cycle");
return;
}
try