This commit is contained in:
@@ -176,7 +176,15 @@ namespace AyaNova.Biz
|
|||||||
long notImportCount = 0;
|
long notImportCount = 0;
|
||||||
if (zipObjectList.Count > 0)
|
if (zipObjectList.Count > 0)
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Starting import of {entryStartsWith} objects", ct);
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Starting import sub-task {importTask} of {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Starting import of {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
|
||||||
var jList = FileUtil.ZipGetUtilityArchiveEntriesAsJsonObjects(zipObjectList, importFileName);
|
var jList = FileUtil.ZipGetUtilityArchiveEntriesAsJsonObjects(zipObjectList, importFileName);
|
||||||
|
|
||||||
IImportAyaNova7Object o = (IImportAyaNova7Object)BizObjectFactory.GetBizObject(importerType, ct);
|
IImportAyaNova7Object o = (IImportAyaNova7Object)BizObjectFactory.GetBizObject(importerType, ct);
|
||||||
@@ -198,15 +206,27 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
if (importCount > 0)
|
if (importCount > 0)
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Successfully imported {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Successfully ran import subtask {importTask} on {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Successfully imported {importCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notImportCount > 0)
|
if (notImportCount > 0)
|
||||||
{
|
{
|
||||||
JobsBiz.LogJob(jobId, $"Did not import {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
if (importTask != "main")
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Failed to run import subtask {importTask} on {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JobsBiz.LogJob(jobId, $"Did not import {notImportCount.ToString()} of {zipObjectList.Count.ToString()} {entryStartsWith} objects", ct);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user