This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user