This commit is contained in:
@@ -19,17 +19,12 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("CoreJobBackup");
|
private static ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("CoreJobBackup");
|
||||||
private static bool BackupIsRunning = false;
|
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)
|
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 (BackupIsRunning) return;
|
||||||
if (!OnDemand)
|
if (!OnDemand)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user