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

@@ -14,7 +14,7 @@ namespace AyaNova.Biz
private static DateTime _lastRun = DateTime.UtcNow;
//SET LOW INTENTIONALLY AS CAN EAT UP A LOT OF RESOURCES QUICKLY IF RUN'S PAST TIME
private static TimeSpan tsRunEvery = new TimeSpan(0, 1, 1);//every this minutes run the cleanup task
private static TimeSpan tsRunEvery = new TimeSpan(0, 0, 20);//every twenty seconds run the cleanup task
////////////////////////////////////////////////////////////////////////////////////////////////
//
@@ -23,9 +23,8 @@ namespace AyaNova.Biz
{
if (DateUtil.IsAfterDuration(_lastRun, tsRunEvery))
{
log.LogDebug("Checking for expired processes");
log.LogTrace("Checking for expired report jobs");
await Util.ReportRenderManager.KillExpiredRenders(log);
//FileUtil.CleanTemporaryFilesFolder(new TimeSpan(0,5,0));//erase any files found to be older than 5 minutes
var now = DateTime.UtcNow;
_lastRun = now;
}