This commit is contained in:
2020-05-22 22:49:36 +00:00
parent 83e2f25f31
commit 5ef12d9df8
2 changed files with 2 additions and 3 deletions

View File

@@ -409,8 +409,7 @@ namespace AyaNova.Biz
{
case JobType.Backup:
//This is called when on demand only, normal backups are processed above with normal system jobs
await CoreJobBackup.DoWorkAsync(ct, true);
await LogJobAsync(job.GId, $"Completed", ct);
await CoreJobBackup.DoWorkAsync(ct, true);
await UpdateJobStatusAsync(job.GId, JobStatus.Completed, ct);
break;
case JobType.TestWidgetJob:

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Biz
private static TimeSpan SWEEP_EVERY_INTERVAL = new TimeSpan(0, 30, 0);
private static TimeSpan SUCCEEDED_JOBS_DELETE_AFTER_THIS_TIMESPAN = new TimeSpan(14, 0, 0, 0);//14 days
private static TimeSpan FAILED_JOBS_DELETE_AFTER_THIS_TIMESPAN = new TimeSpan(14, 0, 0, 0);//14 days (gives people time to notice and look into it)
private static TimeSpan INTERNAL_JOBS_LOGS_DELETE_AFTER_THIS_TIMESPAN = new TimeSpan(0, 0, 10, 0);//14 days
private static TimeSpan INTERNAL_JOBS_LOGS_DELETE_AFTER_THIS_TIMESPAN = new TimeSpan(14, 0, 0, 0);//14 days
private static TimeSpan RUNNING_JOBS_BECOME_FAILED_AFTER_THIS_TIMESPAN = new TimeSpan(24, 0, 0);//24 hours (time running jobs are allowed to sit in "running" state before considered failed)