This commit is contained in:
2020-05-25 22:46:09 +00:00
parent 006832a082
commit 573e2e2960

View File

@@ -19,17 +19,12 @@ namespace AyaNova.Biz
{
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("CoreJobBackup");
private static bool BackupIsRunning = false;
private const int MAXIMUM_MS_ALLOWED_FOR_PROCESSING = 15 * 60 * 1000;//wild assed guess 15 minutes maximum to run backup command, ever
private const int MAXIMUM_MS_ALLOWED_FOR_PROCESSING = 5 * 60 * 1000;//wild assed guess 5 minutes maximum to run backup command, ever
////////////////////////////////////////////////////////////////////////////////////////////////
//
//
public static async Task DoWorkAsync(bool OnDemand = false)
{
//## TEST TEMPORARY
//This should trigger the kill switch for generator
System.Diagnostics.Debug.WriteLine($"CoreJobBackup test wait 2 minutes starting now...");
await Task.Delay(new TimeSpan(0, 2, 0));
if (BackupIsRunning) return;
if (!OnDemand)
{