Remove cancelled layers from processors
This commit is contained in:
@@ -19,7 +19,7 @@ public class T3SourceYearSummaryProcessor(
|
||||
}
|
||||
var processedLayer = db.Layers
|
||||
.Where(x => x.ParentId == processWorker.Id
|
||||
&& !x.IsDeleted)
|
||||
&& !x.IsDeleted && !x.IsCancelled)
|
||||
.OrderByDescending(x => x.CreatedAt)
|
||||
.FirstOrDefault();
|
||||
|
||||
@@ -52,7 +52,7 @@ public class T3SourceYearSummaryProcessor(
|
||||
var j = i;
|
||||
var dataSource = db.Layers.Where(x =>
|
||||
x.Type == LayerType.Processed
|
||||
&& !x.IsDeleted
|
||||
&& !x.IsDeleted && !x.IsCancelled
|
||||
&& x.Name!=null && x.Name.Contains($"{year}/{j:D2}-{source}-T3"))
|
||||
.Include(x => x.Records)
|
||||
.AsNoTracking()
|
||||
|
||||
Reference in New Issue
Block a user