throw error instead of adding log entry
This commit is contained in:
@@ -73,15 +73,7 @@ public class T3SingleSourceProcessor(
|
|||||||
|
|
||||||
if (!dataSources.Any(x => x.CreatedAt > processedLayer.ModifiedAt))
|
if (!dataSources.Any(x => x.CreatedAt > processedLayer.ModifiedAt))
|
||||||
{
|
{
|
||||||
logsController.AddEntry(new LogEntry
|
throw new Exception("No new data to process");
|
||||||
{
|
|
||||||
Title = $"{processWorker.Name}, {processWorker.Id}",
|
|
||||||
Type = LogEntryType.Info,
|
|
||||||
LogType = LogType.Process,
|
|
||||||
Message = $"Layer is up to date",
|
|
||||||
CreatedAt = DateTime.UtcNow
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var allRecords = dataSources.SelectMany(x => x.Records!).ToList();
|
var allRecords = dataSources.SelectMany(x => x.Records!).ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user