This commit is contained in:
2020-01-27 22:37:47 +00:00
parent 3402eb0a17
commit 48b35e23a2
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ namespace AyaNova.Biz
//Erase all the data except for the license, schema and the manager user
Microsoft.Extensions.Logging.ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger("ImportAyaNova7");
await JobsBiz.LogJobAsync(job.GId, "ImportAyaNova7 - Erasing data from database", ct);
DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
await DbUtil.EmptyBizDataFromDatabaseForSeedingOrImportingAsync(log);
//get the contents of the archive

View File

@@ -311,7 +311,7 @@ namespace AyaNova.Biz
log.LogError(ex, $"ProcessJobs::Exclusive -> job {j.Name} failed with exception");
await LogJobAsync(j.GId, "Job failed with errors:", ct);
await LogJobAsync(j.GId, ExceptionUtil.ExtractAllExceptionMessages(ex), ct);
UpdateJobStatusAsync(j.GId, JobStatus.Failed, ct);
await UpdateJobStatusAsync(j.GId, JobStatus.Failed, ct);
}
}
//Get a list of non-exlusive jobs that are due
@@ -337,7 +337,7 @@ namespace AyaNova.Biz
log.LogError(ex, $"ProcessJobs::Shared -> job {j.Name} failed with exception");
await LogJobAsync(j.GId, "Job failed with errors:", ct);
await LogJobAsync(j.GId, ExceptionUtil.ExtractAllExceptionMessages(ex), ct);
UpdateJobStatusAsync(j.GId, JobStatus.Failed, ct);
await UpdateJobStatusAsync(j.GId, JobStatus.Failed, ct);
}
}