This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user