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

@@ -34,16 +34,16 @@ namespace AyaNova.Biz
//
public static async Task DoWorkAsync()
{
log.LogDebug("Checking if Notify should run");
log.LogTrace("Checking if Notify should run");
if (NotifyIsRunning)
{
log.LogDebug("Notify is running already exiting this cycle");
log.LogTrace("Notify 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($"Notify ran less than {RUN_EVERY_INTERVAL} ago, exiting this cycle");
log.LogTrace($"Notify ran less than {RUN_EVERY_INTERVAL} ago, exiting this cycle");
return;
}
try