This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using AyaNova.Util;
|
||||
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
@@ -19,12 +19,12 @@ namespace AyaNova.Biz
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
public static void DoWork()
|
||||
public static async Task DoWork()
|
||||
{
|
||||
if (DateUtil.IsAfterDuration(_lastRun, tsRunEvery))
|
||||
{
|
||||
log.LogDebug("Checking for expired processes");
|
||||
Util.ReportRenderManager.KillExpiredRenders(log);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user